{
  "_id": "rgb-regex",
  "maintainers": [
    {
      "name": "johno",
      "email": "johnotander@gmail.com"
    }
  ],
  "keywords": [
    "css",
    "regex",
    "regexp",
    "regexps",
    "rgb",
    "color",
    "regular",
    "expression"
  ],
  "dist-tags": {
    "latest": "1.0.1"
  },
  "author": {
    "name": "John Otander"
  },
  "_rev": "6-996de30db2b080916ef7fd55e1819c2d",
  "description": "Regex for RGB color strings.",
  "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",
  "repository": {
    "type": "git",
    "url": "https://github.com/regexps/rgb-regex.git"
  },
  "bugs": {
    "url": "https://github.com/regexps/rgb-regex/issues"
  },
  "license": "MIT",
  "versions": {
    "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",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/rgb-regex/-/rgb-regex-1.0.0.tgz",
        "integrity": "sha512-jk0npuvkC1MwldR7uUNhvpRCq+a5DnWhM+EqikpmbqHl4nvjZmn+OozyBjMycsbTvm/m2gyEpQePTqXAXDSvgw==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIGluxbhWV5WSsEHAWfN9A1IKGIZBk6wLCQZBqkabwLlSAiEAgdsNjbrUrNPA1M9lajXaQCb2GVLcsWJMG3Aj2RAmiTg="
          }
        ]
      }
    },
    "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",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/rgb-regex/-/rgb-regex-1.0.1.tgz",
        "integrity": "sha512-gDK5mkALDFER2YLqH6imYvK6g02gpNGM4ILDZ472EwWfXZnC2ZEpoB2ECXTyOVUKuk/bPJZMzwQPBYICzP+D3w==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIQDWqWBiL8v+HQ1MkSsV/XSlmmc9cea63yjUBddSv1UTiAIgVy0Z8fB9uFRmPOJeD45cto05dYjQsgrSFu6Fjud5/jU="
          }
        ]
      }
    }
  },
  "name": "rgb-regex",
  "time": {
    "modified": "2026-05-24T07:56:58.209Z",
    "created": "2015-02-01T23:07:25.384Z",
    "1.0.0": "2015-02-01T23:07:25.384Z",
    "1.0.1": "2015-02-02T04:41:06.586Z"
  },
  "readmeFilename": "README.md",
  "homepage": "https://github.com/regexps/rgb-regex"
}