{"_id":"@ajberkow/color-contrast","_rev":"1-671619ac4674070c44390d04f8e696b3","name":"@ajberkow/color-contrast","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@ajberkow/color-contrast","version":"0.0.1","author":{"name":"Adam Berkowitz"},"description":"A utility to check for WCAG compliant color contrast","bin":{"color-contrast":"./bin/run"},"bugs":{"url":"https://github.com/aberkow/color-contrast/issues"},"dependencies":{"@oclif/command":"^1.5.14","@oclif/config":"^1.13.0","@oclif/plugin-help":"^2.2.0"},"devDependencies":{"@oclif/test":"^1.2.4","chai":"^4.2.0","mocha":"^5.2.0","nyc":"^13.3.0"},"engines":{"node":">=8.0.0"},"homepage":"https://github.com/aberkow/color-contrast","keywords":["oclif"],"license":"MIT","main":"src/index.js","oclif":{"bin":"color-contrast"},"repository":{"type":"git","url":"git+https://github.com/aberkow/color-contrast.git"},"scripts":{"test":"nyc mocha --forbid-only \"test/**/*.test.js\""},"gitHead":"692422ada45f9778165d6979db0605e05e0f9fb5","_id":"@ajberkow/color-contrast@0.0.1","_nodeVersion":"8.10.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-5Uby2QutdxtrXq+M7l227UGEgxbTuOdTazxA9YzTCSxA4txy7rMRba3APY5QnLKNnslqNtvsGYPhxyjXCNZ30w==","shasum":"a841a8a78f2d04f211278c04977c0011799cd11a","tarball":"https://registry.npmjs.org/@ajberkow/color-contrast/-/color-contrast-0.0.1.tgz","fileCount":5,"unpackedSize":6498,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc+BEACRA9TVsSAnZWagAA3pwP/iIQmaxd9kn2iYKnvNwn\nYUYOcxnqhAgVVA81HCu3eHmVSxfW+xDNTaihfs32yo+ADjdQxo2MTYRJP5R/\nF+syebWUQtF7RJEQWhxHirzC4uaWlSlMkEQ+bMPyU1ULi9LtqVft7P7ABRIk\neiwr8mcxfC47h6hCUFMxS3HbC+7vGo+t0tWPBfoj5vxGZvB4p0hj0fdxS2nZ\nHnODUUEfoPvWx8Otdjp7YcE8ym6ZDJk6CpfqIbkWBxPfGyj7KCpOWYj5J8ZW\n4YwG4193/LEVrc5CECpULkqtD0oDsW4VQqisaJ85oR5fjw0JUXlRoxcX+3YR\n3nA4UiJkI7QWQKBGUujQBSDyt4WlVPfI56ONDLDXY8ZFzZvBpC6otLaTgedU\nfFXL+fTknRuXiUq9Lu+Cczysx7Quz13yFE+ZJrd4pmkmd5yDsJc7A5HxhczS\nvc9dwPs4+VvM+Oc/XvPX2GMgbU7u8zX7kT31HPdsE2UXxYqa5Q43NmuWss50\nr2ciGVhecZapYlVj9uw+MkHYDb+kjR9/PxSY85QZVUpdT3ZEXmlOr2AZPG/L\nh06b5AWXp8qdZWS0fSS91VCTmPS5pdaPqmAeDHBC+tulacXqrPUBhk3qpJZ7\nJGWDRttONPcIPwe8MVuePShLMVqj5Q10aYpLnjVL8oDcQDhzp/u5dLXHR/XH\nNnUU\r\n=0t+L\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD6xx97mA/KIVpKVx5xTiC9GvL+uvTDVmCOj7YOjaibfwIgfpSj412ttI4vVEbwN9MKGvZsYwFGNLja8a7JURoFzBI="}]},"maintainers":[{"name":"ajberkow","email":"adam@adamjberkowitz.com"}],"_npmUser":{"name":"ajberkow","email":"adam@adamjberkowitz.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/color-contrast_0.0.1_1559761152252_0.6237811341372792"},"_hasShrinkwrap":false}},"time":{"created":"2019-06-05T18:59:12.224Z","0.0.1":"2019-06-05T18:59:12.446Z","modified":"2022-04-04T12:26:27.723Z"},"maintainers":[{"name":"ajberkow","email":"adam@adamjberkowitz.com"}],"description":"A utility to check for WCAG compliant color contrast","homepage":"https://github.com/aberkow/color-contrast","keywords":["oclif"],"repository":{"type":"git","url":"git+https://github.com/aberkow/color-contrast.git"},"author":{"name":"Adam Berkowitz"},"bugs":{"url":"https://github.com/aberkow/color-contrast/issues"},"license":"MIT","readme":"# color-contrast\n==============\nA small utility to calculate color contrast and determine WCAG compliance. This tool is based on the [WebAIM color contrast checker](https://webaim.org/resources/contrastchecker/). It uses calculations based on the [W3C Web Content Accessibility Guidelines](https://www.w3.org/TR/2008/REC-WCAG20-20081211/#contrast-ratiodef).\n\n\n\n[![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)\n[![Version](https://img.shields.io/npm/v/color-contrast.svg)](https://npmjs.org/package/color-contrast)\n[![Downloads/week](https://img.shields.io/npm/dw/color-contrast.svg)](https://npmjs.org/package/color-contrast)\n[![License](https://img.shields.io/npm/l/color-contrast.svg)](https://github.com/Projects/color-contrast/blob/master/package.json)\n\n<!-- toc -->\n## Usage\n<!-- usage -->\nTODO\n## Commands\n<!-- commands -->\nCommands take the format `color-contrast [-f <foreground hex value>] [-b <background hex value>]`. Foreground and background values can be entered with or without `#` signs. The default values are\n- foreground: `#000000`\n- background: `#ffffff`\n\nA report is generated for each ratio. For example, entering this command `color-contrast -f #123abc` returns\n```\n{\n\t\"ratio\": 8.909214716654146,\n\t\"AA\": \"pass\",\n\t\"AALarge\": \"pass\",\n\t\"AAA\": \"pass\",\n\t\"AAALarge\": \"pass\"\n}\n```\n\n## TODO\n- Tests\n- Other kinds of color formatting (e.g. rgb, hsl) and possibly transparency \n\n","readmeFilename":"README.md"}