{"name":"rgb-hex","version":"1.0.0","description":"Convert RGB color to HEX","license":"MIT","repository":{"type":"git","url":"git://github.com/sindresorhus/rgb-hex"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"http://sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["rgb","hex","color","colour","convert","conversion","converter"],"devDependencies":{"ava":"0.0.3"},"gitHead":"d767c0b4fddbff2fa1b99ef14da4d2c83793bcd0","bugs":{"url":"https://github.com/sindresorhus/rgb-hex/issues"},"homepage":"https://github.com/sindresorhus/rgb-hex","_id":"rgb-hex@1.0.0","_shasum":"bfaf8cd9cd9164b5a26d71eb4f15a0965324b3c1","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"dist":{"shasum":"bfaf8cd9cd9164b5a26d71eb4f15a0965324b3c1","tarball":"http://registry-npm.ywwl.com/rgb-hex/download/rgb-hex-1.0.0.tgz","integrity":"sha512-wKTWuX7IF4CeR5QMmrJIKuV6E9P4bpiJWKEQot3xbfMp8GJYDL7pm5dWAQ88F0DnSGcjQqX+YdvxChd30NE7PA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICZQLsSCQCJbnuLI9++IWsvNb0q6UxEZLKmtKdq60GSsAiBRnp1eopxMKpDWZflW1b9EeDApFw4VNKM+Fdui4F+zIQ=="}],"size":866,"noattachment":false,"key":"/rgb-hex/-/rgb-hex-1.0.0.tgz"},"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":1406468081343,"_cnpm_publish_time":1406468081343,"dist-tags":{"latest":"4.1.0"}}