{"_id":"rgba-regex","_rev":"159844","name":"rgba-regex","description":"Regex for matching RGBA color strings.","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"johno","email":"johnotander@gmail.com"}],"time":{"modified":"2021-06-03T11:39:15.000Z","created":"2015-02-02T04:42:23.410Z","1.0.0":"2015-02-02T04:42:23.410Z"},"users":{},"author":{"name":"John Otander"},"repository":{"type":"git","url":"https://github.com/johnotander/rgba-regex.git"},"versions":{"1.0.0":{"name":"rgba-regex","description":"Regex for matching RGBA 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/johnotander/rgba-regex.git"},"keywords":["css","regex","regexp","regexps","rgba","color","regular","expression"],"license":"MIT","bugs":{"url":"https://github.com/johnotander/rgba-regex/issues"},"homepage":"https://github.com/johnotander/rgba-regex","dependencies":{},"devDependencies":{"mocha":"*"},"gitHead":"9dccb73d878c29830cddb1013c38f81f4cc0bed9","_id":"rgba-regex@1.0.0","_shasum":"43374e2e2ca0968b0ef1523460b7d730ff22eeb3","_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":"43374e2e2ca0968b0ef1523460b7d730ff22eeb3","size":2393,"noattachment":false,"key":"/rgba-regex/-/rgba-regex-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/rgba-regex/download/rgba-regex-1.0.0.tgz"},"publish_time":1422852143410,"_cnpm_publish_time":1422852143410,"_hasShrinkwrap":false}},"readme":"# rgba-regex\n\n[![Build Status](https://secure.travis-ci.org/regexps/rgba-regex.png?branch=master)](https://travis-ci.org/regexps/rgba-regex)\n\nRegex for matching RGBA color strings.\n\n## Installation\n\n```bash\nnpm install --save rgba-regex\n```\n\n## Usage\n\n```javascript\nvar rgbaRegex = require('rgba-regex');\n\nrgbaRegex({ exact: true }).test('rgba(12, 34, 56, .8)');  // => true\nrgbaRegex({ exact: true }).test('unicorns');         // -> false\nrgbaRegex({ exact: true }).test('rgba(,,,)');          // => false\n\nrgbaRegex().exec('rgba(12, 34, 56, .8)');\n// => [\n//  '12',\n//  '34',\n//  '56',\n//  '.8'\n//  index: 0,\n//  input: 'rgba(12,34,56, .8)'\n// ]\n\n'rgba(12, 34, 56, .8) cats and dogs'.match(rgbaRegex());\n// = ['rgba(12, 34, 56, .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/johnotander/rgba-regex","bugs":{"url":"https://github.com/johnotander/rgba-regex/issues"},"license":"MIT"}