{"name":"rgb-hex","version":"2.1.0","description":"Convert RGB(A) 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":"1982e8432c26b16e04de9abbea7beba66533a77e","bugs":{"url":"https://github.com/sindresorhus/rgb-hex/issues"},"homepage":"https://github.com/sindresorhus/rgb-hex#readme","_id":"rgb-hex@2.1.0","_shasum":"c773c5fe2268a25578d92539a82a7a5ce53beda6","_from":".","_npmVersion":"2.15.9","_nodeVersion":"4.6.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"c773c5fe2268a25578d92539a82a7a5ce53beda6","tarball":"http://registry-npm.ywwl.com/rgb-hex/download/rgb-hex-2.1.0.tgz","integrity":"sha512-1hDa60MqECZiEGsa9TtcOE9VbV6fhZSMQARy7U+a2HkhIJyoEBhcG4v/qYAJYzV3Bbj+j52sBoAIKKF5EPuQZw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEYQA19VdnX02VI6Ho4RsWk0QmP5Znb8X1n+RoP2Mz34AiB46nJr8/odjni80GBrgWwctTv/kxGZLNVIRra8EM39Mg=="}],"size":1962,"noattachment":false,"key":"/rgb-hex/-/rgb-hex-2.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/rgb-hex-2.1.0.tgz_1478233582629_0.0022867806255817413"},"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":1478233584529,"_cnpm_publish_time":1478233584529,"dist-tags":{"latest":"4.1.0"}}