{"name":"@csstools/convert-colors","version":"1.3.0","description":"Convert colors between RGB, HSL, and HWB","author":{"name":"Jonathan Neal","email":"jonathantneal@hotmail.com"},"license":"CC0-1.0","repository":{"type":"git","url":"git+https://github.com/jonathantneal/convert-colors.git"},"homepage":"https://github.com/jonathantneal/convert-colors#readme","bugs":{"url":"https://github.com/jonathantneal/convert-colors/issues"},"main":"index.bundle.js","module":"index.js","files":["index.js","index.bundle.js","lib"],"scripts":{"prepublishOnly":"npm test","pretest":"rollup -c .rollup.js --silent","test":"echo 'Running tests...'; npm run test:ec && npm run test:js && npm run test:tape","test:ec":"echint test","test:js":"eslint *.js --cache --ignore-path .gitignore --quiet","test:tape":"node .tape"},"engines":{"node":">=4.0.0"},"devDependencies":{"babel-core":"^6.26.0","babel-preset-env":"^1.6","echint":"^4.0","eslint":"^4.15","eslint-config-dev":"2.0","pre-commit":"^1.2","rollup":"^0.54","rollup-plugin-babel":"^3.0"},"eslintConfig":{"extends":"dev","rules":{"max-params":[2,4]}},"keywords":["colors","converts","css","rgb","hsl","hwb","red","green","blue","hue","saturation","lightness","whiteness","blackness"],"gitHead":"76a261322f7667681a3d32591f48524d98f9c18c","_id":"@csstools/convert-colors@1.3.0","_npmVersion":"5.6.0","_nodeVersion":"9.3.0","_npmUser":{"name":"jonathantneal","email":"jonathantneal@hotmail.com"},"dist":{"integrity":"sha512-JZkCfa/U9+WfBSAFESaIq0MHVflyXQZwAB1e7YA3XZ3Kw8J9CBEFQ+Vm7FeK1PcTi8WYbrtlY2Go1tlI9sqbMg==","shasum":"471eeea45a24c4778f53cd2c906fbc52d4c71065","tarball":"http://registry-npm.ywwl.com/@csstools/convert-colors/download/@csstools/convert-colors-1.3.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDCgFKkatSxAeFROUka5oX5y+CQ75APl/kjmkcGohsG6AIgSmkfkE8uO0F4FGR6l6z86JacCKRvyM28/x5bPoP/ym8="}],"size":10920,"noattachment":false,"key":"/@csstools/convert-colors/-/@csstools/convert-colors-1.3.0.tgz"},"maintainers":[{"name":"jonathantneal","email":"jonathantneal@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/convert-colors-1.3.0.tgz_1516932631667_0.8631520196795464"},"directories":{},"readme":"# Convert Colors [<img src=\"https://cdn.worldvectorlogo.com/logos/nodejs-icon.svg\" alt=\"Convert Colors\" width=\"90\" height=\"90\" align=\"right\">][Convert Colors]\n\n[![NPM Version][npm-img]][npm-url]\n[![Linux Build Status][cli-img]][cli-url]\n[![Windows Build Status][win-img]][win-url]\n\n[Convert Colors] converts colors between RGB, HEX, HSL, HWB, LAB, LCH, and more.\n\n```js\nimport convert from '@csstools/convert-colors';\n\nconvert.rgb2hsl(100, 100, 100); // [ 0, 0, 100 ]\nconvert.rgb2hwb(100, 100, 100); // [ 0, 100, 0 ]\n\nconvert.hsl2rgb(0, 0, 100); // [ 0, 100, 0 ]\nconvert.hsl2hwb(0, 0, 100); // [ 0, 100, 0 ]\n\nconvert.hwb2rgb(0, 100, 0); // [ 0, 0, 100 ]\nconvert.hwb2hsl(0, 100, 0); // [ 0, 0, 100 ]\n\nconvert.rgb2hue(0, 0, 100); // 240\n\nconvert.rgb2contrast([100, 100, 100], [0, 0, 0]); // 21\nconvert.rgb2ciede2000([100, 100, 100], [0, 0, 0]); // 100\n```\n\n## Usage\n\nAdd [Convert Colors] to your build tool:\n\n```bash\nnpm install @csstools/convert-colors --save-dev\n```\n\n## Features\n\nConversions work by taking arguments that represents a color in one color space\nand returning an array of that same color in another color space.\n\n[Documentation](https://jonathantneal.github.io/convert-colors/)\n\n[npm-url]: https://www.npmjs.com/package/@csstools/convert-colors\n[npm-img]: https://img.shields.io/npm/v/@csstools/convert-colors.svg\n[cli-url]: https://travis-ci.org/jonathantneal/convert-colors\n[cli-img]: https://img.shields.io/travis/jonathantneal/convert-colors.svg\n[win-url]: https://ci.appveyor.com/project/jonathantneal/convert-colors\n[win-img]: https://img.shields.io/appveyor/ci/jonathantneal/convert-colors.svg\n\n[Convert Colors]: https://github.com/jonathantneal/convert-colors\n","publish_time":1516932632547,"_cnpm_publish_time":1516932632547,"dist-tags":{"latest":"2.0.1"}}