{"_id":"rgb-regex","_rev":"159838","name":"rgb-regex","description":"Regex for RGB color strings.","dist-tags":{"latest":"1.0.1"},"maintainers":[{"name":"johno","email":"johnotander@gmail.com"}],"time":{"modified":"2021-06-03T11:39:15.000Z","created":"2015-02-01T23:07:25.384Z","1.0.1":"2015-02-02T04:41:06.586Z","1.0.0":"2015-02-01T23:07:25.384Z"},"users":{},"author":{"name":"John Otander"},"repository":{"type":"git","url":"https://github.com/regexps/rgb-regex.git"},"versions":{"1.0.1":{"name":"rgb-regex","description":"Regex for RGB color strings.","author":{"name":"John Otander"},"version":"1.0.1","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha test"},"repository":{"type":"git","url":"https://github.com/regexps/rgb-regex.git"},"keywords":["css","regex","regexp","regexps","rgb","color","regular","expression"],"license":"MIT","bugs":{"url":"https://github.com/regexps/rgb-regex/issues"},"homepage":"https://github.com/regexps/rgb-regex","dependencies":{},"devDependencies":{"mocha":"*"},"gitHead":"f3471a3347a3da5349d6dad262accd306a95c23b","_id":"rgb-regex@1.0.1","_shasum":"c0e0d6882df0e23be254a475e8edd41915feaeb1","_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":"c0e0d6882df0e23be254a475e8edd41915feaeb1","size":2356,"noattachment":false,"key":"/rgb-regex/-/rgb-regex-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/rgb-regex/download/rgb-regex-1.0.1.tgz"},"publish_time":1422852066586,"_cnpm_publish_time":1422852066586,"_hasShrinkwrap":false},"1.0.0":{"name":"rgb-regex","description":"Regex for RGB color strings.","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/rgb-regex.git"},"keywords":[],"license":"MIT","bugs":{"url":"https://github.com/regexps/rgb-regex/issues"},"homepage":"https://github.com/regexps/rgb-regex","dependencies":{},"devDependencies":{"mocha":"*"},"gitHead":"a6fbe3c2979695a260aabe4da42630b90c576a7b","_id":"rgb-regex@1.0.0","_shasum":"8bea364f17226b8ccda61c3631c4e8f355eed2a5","_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":"8bea364f17226b8ccda61c3631c4e8f355eed2a5","size":2328,"noattachment":false,"key":"/rgb-regex/-/rgb-regex-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/rgb-regex/download/rgb-regex-1.0.0.tgz"},"publish_time":1422832045384,"_cnpm_publish_time":1422832045384,"_hasShrinkwrap":false}},"readme":"# rgb-regex\n\n[![Build Status](https://secure.travis-ci.org/regexps/rgb-regex.png?branch=master)](https://travis-ci.org/regexps/rgb-regex)\n\nRegex for RGB color strings.\n\n## Installation\n\n```bash\nnpm install --save rgb-regex\n```\n\n## Usage\n\n```javascript\nvar rgbRegex = require('rgb-regex');\n\nrgbRegex({ exact: true }).test('rgb(12, 34, 56)');  // => true\nrgbRegex({ exact: true }).test('unicorns');         // -> false\nrgbRegex({ exact: true }).test('rgb(,,)');          // => false\n\nrgbRegex().exec('rgb(12, 34, 56)');\n// => [\n//  '12',\n//  '34',\n//  '56',\n//  index: 0,\n//  input: 'rgb(12,34,56)'\n// ]\n\n'rgb(12, 34, 56) cats and dogs'.match(rgbRegex());\n// = ['rgb(12, 34, 56)']\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/rgb-regex","bugs":{"url":"https://github.com/regexps/rgb-regex/issues"},"license":"MIT"}