{"_id":"hsl-regex","_rev":"159818","name":"hsl-regex","description":"Regex for matching HSL 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:03:15.425Z","1.0.0":"2015-01-30T23:49:33.498Z","0.0.1":"2015-01-30T23:03:15.425Z"},"users":{},"author":{"name":"John Otander"},"repository":{"type":"git","url":"https://github.com/regexps/hsl-regex.git"},"versions":{"1.0.0":{"name":"hsl-regex","description":"Regex for matching HSL 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/hsl-regex.git"},"keywords":["hsl","regex","regexp","color","css"],"license":"MIT","bugs":{"url":"https://github.com/regexps/hsl-regex/issues"},"homepage":"https://github.com/regexps/hsl-regex","dependencies":{},"devDependencies":{"mocha":"*"},"gitHead":"5613f31263cc11a8deb9311fb50c791ba1bf835c","_id":"hsl-regex@1.0.0","_shasum":"d49330c789ed819e276a4c0d272dffa30b18fe6e","_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":"d49330c789ed819e276a4c0d272dffa30b18fe6e","size":2336,"noattachment":false,"key":"/hsl-regex/-/hsl-regex-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/hsl-regex/download/hsl-regex-1.0.0.tgz"},"publish_time":1422661773498,"_cnpm_publish_time":1422661773498,"_hasShrinkwrap":false},"0.0.1":{"name":"hsl-regex","description":"Regex for matching HSL 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/hsl-regex.git"},"keywords":[],"license":"MIT","bugs":{"url":"https://github.com/regexps/hsl-regex/issues"},"homepage":"https://github.com/regexps/hsl-regex","dependencies":{},"devDependencies":{"mocha":"*"},"gitHead":"f5afdad8bf4884311c703cb19aa38aef2f615710","_id":"hsl-regex@0.0.1","_shasum":"caeff83efa2af9162ec7fd92425234908b061e78","_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":"caeff83efa2af9162ec7fd92425234908b061e78","size":2319,"noattachment":false,"key":"/hsl-regex/-/hsl-regex-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/hsl-regex/download/hsl-regex-0.0.1.tgz"},"publish_time":1422658995425,"_cnpm_publish_time":1422658995425,"_hasShrinkwrap":false}},"readme":"# hsl-regex\n\n[![Build Status](https://secure.travis-ci.org/regexps/hsl-regex.png?branch=master)](https://travis-ci.org/regexps/hsl-regex)\n\nRegex for matching HSL colors.\n\n## Installation\n\n```bash\nnpm install --save hsl-regex\n```\n\n## Usage\n\n```javascript\nvar hslRegex = require('hsl-regex');\n\nhslRegex({ exact: true }).test('hsl(123, 45%, 67%)');  // => true\nhslRegex({ exact: true }).test('foo bar');  // => false\n\nhslRegex({ exact: true }).exec('hsl(1, 1.111%, 1.1111%)');\n// => [\n//  'hsl(1, 1.111%, 1.1111%)',\n//  '1',\n//  '1.111%',\n//  '1.1111%',\n//  index: 0,\n//  input: 'hsl(1, 1.111%, 1.1111%)'\n// ]\n\n'hsl(123, 45%, 67%) cats and dogs'.match(hslRegex());\n// = ['hsl(123, 45%, 67%)']\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/hsl-regex","bugs":{"url":"https://github.com/regexps/hsl-regex/issues"},"license":"MIT"}