{"_id":"hsla-regex","maintainers":[{"name":"johno","email":"johnotander@gmail.com"}],"keywords":["hsla","regex","regexp","color","css"],"dist-tags":{"latest":"1.0.0"},"author":{"name":"John Otander"},"description":"Regex for matching HSLA colors.","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","repository":{"type":"git","url":"https://github.com/regexps/hsla-regex.git"},"bugs":{"url":"https://github.com/regexps/hsla-regex/issues"},"license":"MIT","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","tarball":"https://devel.data-in-motion.biz/nexus/repository/npm-group/hsla-regex/-/hsla-regex-1.0.0.tgz","integrity":"sha512-7Wn5GMLuHBjZCb2bTmnDOycho0p/7UVaAeqXZGbHrBCl6Yd/xDhQJAXe6Ga9AXJH2I5zY1dEdYw2u1UptnSBJA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD0oqETdFtQ+m1QqNDuGXpjhS4sSpmFNcQppbCx+WRCoQIgELzPys4f1j2dGj0uZBSiX4pimUJb027Q6tas7RyXh6I="}]}},"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","tarball":"https://devel.data-in-motion.biz/nexus/repository/npm-group/hsla-regex/-/hsla-regex-0.0.1.tgz","integrity":"sha512-TKSmT1PysZ1cx5CcL76jXVdNIUgX/VNijSTdYpRZ/XSROoCBVzO4z+xueAl4BHnRC22EFT5DhPNDbdZiMFZjCQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCTQl9BTNbEgFHvggeygBLTvt2c+jsRTLGnGs4CKKh8wwIgQwvG+5E8ptZViJbp3tfH80kJkqhi6mxxYhmjjPOpmTQ="}]}}},"name":"hsla-regex","time":{"created":"2015-01-30T23:30:20.747Z","modified":"2025-05-13T13:22:42.162Z","1.0.0":"2015-01-30T23:48:43.939Z","0.0.1":"2015-01-30T23:30:20.747Z"},"readmeFilename":"README.md","homepage":"https://github.com/regexps/hsla-regex"}