{"_id":"hsla-regex","_rev":"159830","name":"hsla-regex","description":"Regex for matching HSLA colors.","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"johno","email":"johnotander@gmail.com"}],"time":{"modified":"2021-06-03T11:39:14.000Z","created":"2015-01-30T23:30:20.747Z","1.0.0":"2015-01-30T23:48:43.939Z","0.0.1":"2015-01-30T23:30:20.747Z"},"users":{},"author":{"name":"John Otander"},"repository":{"type":"git","url":"https://github.com/regexps/hsla-regex.git"},"versions":{"1.0.0":{"name":"hsla-regex","description":"Regex for matching HSLA colors.","author":{"name":"John Otander"},"version":"1.0.0","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha test"},"repository":{"type":"git","url":"https://github.com/regexps/hsla-regex.git"},"keywords":["hsla","regex","regexp","color","css"],"license":"MIT","bugs":{"url":"https://github.com/regexps/hsla-regex/issues"},"homepage":"https://github.com/regexps/hsla-regex","dependencies":{},"devDependencies":{"mocha":"*"},"gitHead":"302e803060083219028243d66031e4aaf2661907","_id":"hsla-regex@1.0.0","_shasum":"c1ce7a3168c8c6614033a4b5f7877f3b225f9c38","_from":".","_npmVersion":"2.1.18","_nodeVersion":"0.10.35","_npmUser":{"name":"johno","email":"johnotander@gmail.com"},"maintainers":[{"name":"johno","email":"johnotander@gmail.com"}],"dist":{"shasum":"c1ce7a3168c8c6614033a4b5f7877f3b225f9c38","size":2370,"noattachment":false,"key":"/hsla-regex/-/hsla-regex-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/hsla-regex/download/hsla-regex-1.0.0.tgz"},"publish_time":1422661723939,"_cnpm_publish_time":1422661723939,"_hasShrinkwrap":false},"0.0.1":{"name":"hsla-regex","description":"Regex for matching HSLA colors.","author":{"name":"John Otander"},"version":"0.0.1","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha test"},"repository":{"type":"git","url":"https://github.com/regexps/hsla-regex.git"},"keywords":[],"license":"MIT","bugs":{"url":"https://github.com/regexps/hsla-regex/issues"},"homepage":"https://github.com/regexps/hsla-regex","dependencies":{},"devDependencies":{"mocha":"*"},"gitHead":"029f397544bbf36427e2750abfe78d1610bc8abc","_id":"hsla-regex@0.0.1","_shasum":"c1c19b018c3bcd5f80f81506ed7bf9806cdbfc32","_from":".","_npmVersion":"2.1.18","_nodeVersion":"0.10.35","_npmUser":{"name":"johno","email":"johnotander@gmail.com"},"maintainers":[{"name":"johno","email":"johnotander@gmail.com"}],"dist":{"shasum":"c1c19b018c3bcd5f80f81506ed7bf9806cdbfc32","size":2345,"noattachment":false,"key":"/hsla-regex/-/hsla-regex-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/hsla-regex/download/hsla-regex-0.0.1.tgz"},"publish_time":1422660620747,"_cnpm_publish_time":1422660620747,"_hasShrinkwrap":false}},"readme":"# hsla-regex\n\n[![Build Status](https://secure.travis-ci.org/regexps/hsla-regex.png?branch=master)](https://travis-ci.org/regexps/hsla-regex)\n\nRegex for matching HSLA colors.\n\n## Installation\n\n```bash\nnpm install --save hsla-regex\n```\n\n## Usage\n\n```javascript\nvar hslaRegex = require('hsla-regex');\n\nhslaRegex({ exact: true }).test('hsla(123, 45%, 67%, .8)');  // => true\nhslaRegex({ exact: true }).test('foo bar');  // => false\n\nhslaRegex({ exact: true }).exec('hsla(1, 1.111%, 1.1111%, .8)');\n// => [\n//  'hsla(1, 1.111%, 1.1111%, .8)',\n//  '1',\n//  '1.111%',\n//  '1.1111%',\n//  '.8'\n//  index: 0,\n//  input: 'hsla(1, 1.111%, 1.1111%, .8)'\n// ]\n\n'hsla(123, 45%, 67%, .8) cats and dogs'.match(hslaRegex());\n// = ['hsla(123, 45%, 67%, .8)']\n```\n\n## License\n\nMIT\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n\nCrafted with <3 by John Otander ([@4lpine](https://twitter.com/4lpine)).\n\n***\n\n> This package was initially generated with [yeoman](http://yeoman.io) and the [p generator](https://github.com/johnotander/generator-p.git).\n","_attachments":{},"homepage":"https://github.com/regexps/hsla-regex","bugs":{"url":"https://github.com/regexps/hsla-regex/issues"},"license":"MIT"}