{"name":"rgb-hex","version":"4.0.0","description":"Convert RGB(A) color to HEX","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/rgb-hex.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":">=12"},"scripts":{"test":"xo && ava && tsd"},"keywords":["rgb","hex","color","colour","convert","conversion","converter"],"devDependencies":{"ava":"^3.15.0","tsd":"^0.14.0","xo":"^0.39.1"},"gitHead":"b3e9b9115e17329c7f084094731cb2f8ac5e3e00","bugs":{"url":"https://github.com/sindresorhus/rgb-hex/issues"},"homepage":"https://github.com/sindresorhus/rgb-hex#readme","_id":"rgb-hex@4.0.0","_nodeVersion":"16.0.0","_npmVersion":"7.10.0","dist":{"integrity":"sha512-Eg2ev5CiMBnQ9Gpflmqbwbso0CCdISqtVIow7OpYSLN1ULUv2jTB9YieS1DSSn/17AD7KkPWDPzSFzI4GSuu/Q==","shasum":"02fb1e215e3fe5d070501579a3d2e4fa3c0acec8","tarball":"http://registry-npm.ywwl.com/rgb-hex/download/rgb-hex-4.0.0.tgz","fileCount":5,"unpackedSize":3974,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgj+jWCRA9TVsSAnZWagAA+3cP/1oUPxR8/eVteI2FcUps\ntKP4CNCmiIYG2CaZOudWbaRDeB933e6KFO4E9uwEnhUo+8IVEX+qqnmCWxkm\njBHeG9lTLurVRLLVoOMYa/DMmWHW5TEWBKgtryGhUqzRp09jJw+UXLJFBSyO\n/Odny9kUHWkmrig1tMEn9W0jJtk7+V3nVZ9MeIdOEgiaNVTN02uGj3pw7v63\nNM7NmcyvPEWG53SEcvFYjXBPSZ0Qemnc9WabD4YgSbGfvwI9QSC+P4FpV2QH\nOHFL8ZPTPAZsC5WE+bkgVS2LVSbT7h5EpYWI9+fBdg40/jjp6so5o1636VcD\nOisisZWaQxywUsyGG48/UQVvMM03UD05dpL7nt4eq1UIT3uCY1Yn7bJ8ov43\njnyY5o/D7ydJA94x2MN7Eh7SdlAHAwS2zxjdjTAWHuz+mzH75QZcLsyz67T1\neaCJLk7YuyVddgHGea7uRUA41mOn+Lo1qyjYyUhKWNyS1tapyx6CURCGtMSX\nz/9xmDLRuEBFwy+m3qzZGVLrjmxiu/a6kCLjPZbv4mc3wZJSLOOE/dMu4Icb\nQP/IISobZ9TW/NJo+ZSvU5TFHYc82Hk+zgEbSAjLTkvN5Q7tUO3ZYjVf49y7\nulSaglBCiTWWXCwD3ACu0Z/0Kc4pa2GmhioAYBY5o4urehiyUa9J+oXOoEQ4\nHbcF\r\n=uDNM\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFaW/qEJS7FMgqtoxPdLbncFsjFgz2OT0qRtBeOF+9txAiEA3IhgXT/0oo5R/s06w36wkEmuWcj6qzMYBh0ZCjIirpU="}],"size":1971,"noattachment":false,"key":"/rgb-hex/-/rgb-hex-4.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rgb-hex_4.0.0_1620043989726_0.5082289954604815"},"_hasShrinkwrap":false,"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":1620043989831,"_cnpm_publish_time":1620043989831,"dist-tags":{"latest":"4.1.0"}}