{"name":"rgb-hex","version":"2.0.0","description":"Convert RGB color to HEX","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/rgb-hex.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["rgb","hex","color","colour","convert","conversion","converter"],"devDependencies":{"ava":"*","xo":"*"},"xo":{"esnext":true},"gitHead":"19cb8cfd7b354808088d66f752d10f8ec6c8fa43","bugs":{"url":"https://github.com/sindresorhus/rgb-hex/issues"},"homepage":"https://github.com/sindresorhus/rgb-hex#readme","_id":"rgb-hex@2.0.0","_shasum":"a4e49881b031594e72a4b564416fe93ae1a87870","_from":".","_npmVersion":"2.15.5","_nodeVersion":"4.4.5","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"a4e49881b031594e72a4b564416fe93ae1a87870","tarball":"http://registry-npm.ywwl.com/rgb-hex/download/rgb-hex-2.0.0.tgz","integrity":"sha512-FyFS+A4gnzjTUGxxfbuD37N7wJMrrdgJl9pM64/k6K+4eFQkwgXjd9HvvfCYnWNZCg8Ht8vG+uZXs35VI1NsEw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDz77rc46CqKVJIAmEBM7/OZZPFTQPn9DKV/VWk5NwHPQIhAKCu9xPvCxEwcOrBL2atzyZPJ8kdoL0O3P1CW6OzcZXc"}],"size":1723,"noattachment":false,"key":"/rgb-hex/-/rgb-hex-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/rgb-hex-2.0.0.tgz_1471200335976_0.024921796517446637"},"directories":{},"readme":"# rgb-hex\n\n> Convert RGB(A) color to HEX\n\n## Install\n\n```\n$ npm install rgb-hex\n```\n\n## Usage\n\n```js\nimport rgbHex from 'rgb-hex';\n\nrgbHex(65, 131, 196);\n//=> '4183c4'\n\nrgbHex('rgb(40, 42, 54)');\n//=> '282a36'\n\nrgbHex(65, 131, 196, 0.2);\n//=> '4183c433'\n\nrgbHex(40, 42, 54, '75%');\n//=> '282a36bf'\n\nrgbHex('rgba(40, 42, 54, 75%)');\n//=> '282a36bf'\n```\n\n## Related\n\n- [rgb-hex-cli](https://github.com/sindresorhus/rgb-hex-cli) - CLI for this module\n- [hex-rgb](https://github.com/sindresorhus/hex-rgb) - Convert HEX color to RGB\n","publish_time":1471200337527,"_cnpm_publish_time":1471200337527,"dist-tags":{"latest":"4.1.0"}}