{"_id":"rgb-hex","_rev":"15-ab8f436923da585d6923df2b5f8bd72c","name":"rgb-hex","description":"Convert RGB(A) color to HEX","dist-tags":{"latest":"4.1.0"},"versions":{"1.0.0":{"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":"https://registry.npmjs.org/rgb-hex/-/rgb-hex-1.0.0.tgz","integrity":"sha512-wKTWuX7IF4CeR5QMmrJIKuV6E9P4bpiJWKEQot3xbfMp8GJYDL7pm5dWAQ88F0DnSGcjQqX+YdvxChd30NE7PA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICZQLsSCQCJbnuLI9++IWsvNb0q6UxEZLKmtKdq60GSsAiBRnp1eopxMKpDWZflW1b9EeDApFw4VNKM+Fdui4F+zIQ=="}]},"directories":{}},"2.0.0":{"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":"https://registry.npmjs.org/rgb-hex/-/rgb-hex-2.0.0.tgz","integrity":"sha512-FyFS+A4gnzjTUGxxfbuD37N7wJMrrdgJl9pM64/k6K+4eFQkwgXjd9HvvfCYnWNZCg8Ht8vG+uZXs35VI1NsEw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDz77rc46CqKVJIAmEBM7/OZZPFTQPn9DKV/VWk5NwHPQIhAKCu9xPvCxEwcOrBL2atzyZPJ8kdoL0O3P1CW6OzcZXc"}]},"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":{}},"2.1.0":{"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":"https://registry.npmjs.org/rgb-hex/-/rgb-hex-2.1.0.tgz","integrity":"sha512-1hDa60MqECZiEGsa9TtcOE9VbV6fhZSMQARy7U+a2HkhIJyoEBhcG4v/qYAJYzV3Bbj+j52sBoAIKKF5EPuQZw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEYQA19VdnX02VI6Ho4RsWk0QmP5Znb8X1n+RoP2Mz34AiB46nJr8/odjni80GBrgWwctTv/kxGZLNVIRra8EM39Mg=="}]},"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":{}},"3.0.0":{"name":"rgb-hex","version":"3.0.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":">=8"},"scripts":{"test":"xo && ava && tsd"},"keywords":["rgb","hex","color","colour","convert","conversion","converter"],"devDependencies":{"ava":"^1.4.1","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"bfecfeafede942bcf20763a8d7638c27c968d36a","bugs":{"url":"https://github.com/sindresorhus/rgb-hex/issues"},"homepage":"https://github.com/sindresorhus/rgb-hex#readme","_id":"rgb-hex@3.0.0","_nodeVersion":"10.15.3","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-8h7ZcwxCBDKvchSWbWngJuSCqJGQ6nDuLLg+QcRyQDbX9jMWt+PpPeXAhSla0GOooEomk3lCprUpGkMdsLjKyg==","shasum":"eab0168cc1279563b18a14605315389142e2e487","tarball":"https://registry.npmjs.org/rgb-hex/-/rgb-hex-3.0.0.tgz","fileCount":5,"unpackedSize":3947,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcwqqxCRA9TVsSAnZWagAArT8P/3WaDVIssHAXsuB8BFOL\nMtapMmqb/pGOkdI2Zru9DDo7FRqDZl4TEFR8WW2FMt2urkh7f/f7f6UfOBWr\nvkYR/vITmIKkfIxs5Pd3OBl4KMtG+bQA7YgppbYXKu7xqMZglBN3VLdEoq+R\nestib6M0ZWBGey8SSWcD/KTvKyfL30xk7BhJESN18Z9Y9gUZo8ottrNPwwb0\nvplYxQfSndFGGXt0v+NLIEAPk9q+u0KF7OJqbXkF7gH4iCniYnXZw5D4WLCF\n/s0Hx07hFWKyf88NdKdRZSpf5EYXNvD2BmCw0Rlwq9GcdV8GaMWuir0sX9rp\nP5Y+QvlyzTmIMfAspxCHZGkmDKEZ3sRxdDeILOLpcrMiAZ9S+nN48odZ9J4p\nJdEUTQocjCfTRdUFKOVP3Dpwo5jOG/n80BrJ+PtwRfQsuR35WYKpITPhVwMa\njoC+jadGpTFXyOUiOuF9sT3d/MRGitwmd9EpsABal3CZZBeTcerWgsB6Gejd\n8al5+7ket6EPgiilqMDBoyU5IpGFHPg6ir2BeBfVlYwbzGJCLbyGBwVyRVRV\nHiWyjHEaWdrFYqadEegPx8V6W3lxmZ5w7l029636TRGdqmco5L8RasuFEnRh\neMMtGy7cCs04UrxzU/lDl5PaCfGu8+zChWauljRB+C8zKmBbR22RH+O6p0cW\n3lqS\r\n=NDz6\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICqeFGdU6cdJq3O9qN7GdWNPGicHnn8OlJy67TXD9KrJAiEAuO5BlIC/04Y1QlaoUxxYHGA4ZrkdYTSb4bZqJFVlSPA="}]},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/rgb-hex_3.0.0_1556261552849_0.7348703900980134"},"_hasShrinkwrap":false},"4.0.0":{"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":"https://registry.npmjs.org/rgb-hex/-/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="}]},"_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},"4.0.1":{"name":"rgb-hex","version":"4.0.1","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","//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"},"types":"./index.d.ts","gitHead":"214528a70d9b838f16b009e7e9f4c90fb9d1c40c","bugs":{"url":"https://github.com/sindresorhus/rgb-hex/issues"},"homepage":"https://github.com/sindresorhus/rgb-hex#readme","_id":"rgb-hex@4.0.1","_nodeVersion":"18.14.2","_npmVersion":"9.2.0","dist":{"integrity":"sha512-HcNmN4252k7YgL1tlMatonEAJQlDrc1lt6UPjMO6xFD/DO6gX+NJz4EKRRZ9/I9nYUzVel6zhTJ5y3wdfSgJEQ==","shasum":"02649ee989fef1234757efd0d2b5a73a0c9a31e1","tarball":"https://registry.npmjs.org/rgb-hex/-/rgb-hex-4.0.1.tgz","fileCount":5,"unpackedSize":3995,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDHrKl54TzZf/3imZ0u/kxaM6wG/M9NWAfp0EsEbPo+vQIhAIBgGYg5ZKAM34NH5wgp23p6jIduqtrJROAXAlQcCS5S"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkEDsTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqPsg/5AcAUSzGfrDq/wxMnSq24QMECGFJPCQ6wEHLCSrLVy0+sgBv3\r\nQx3/TeSDooFeGwKaQeVV5TcEj4nsGcalSNHwM5zF6UmErE5sMvNEjXGOpzic\r\n0mansiT4+KKfspYMdNj3j4qmc0lnnFZjTz67hbbdvQjqxKPPa+u6GObQGEc2\r\nezuAf53pXFyLTPv+CMRe/MQjktj7RFlyHvRBLeUSqhoc2PhfekGramuLrVNF\r\nKyfOR8cxMrb0SNuku7Y22yVjQUzhG8wcMxOjTE7NwjgoultYTTBev6/tHl/C\r\nlqFnCL7zHfHTTHJfVDb8/yrCkibiQJF1G4+7sgV1EwiXvP/h633m6ARZ5ZeY\r\nYfP8VJFlTmPVNwfbD2AzNREKWZEuoy9ET4kIPhlpJwb0xx5ILieTfbPrgdq9\r\n+Lkd8+N6NkEaVUffdsHZ+puZMcAiZcxZ/Vt9Zg2emDWC7knUBExZv9tcVMeZ\r\njsrg5rV6xb6Yy9C7TmnerDLO4nb2S95EaEJNaDzGTUPfFrTwbdAPerPjcKs9\r\nfnq3W2zaZ3KDw9CQt44YNpwsYi4FLcWMKogRjUGpwFg/1MCTIy4vzXMy09jz\r\nTjevWZcyHUK2fNEGM4Qv91rOSq04QGgMyaZXjGH9FndQ17AOJkmG+iweuet0\r\navZ3d7T7isZxO/utVayeFvncIW+wj+WE270=\r\n=9xOG\r\n-----END PGP SIGNATURE-----\r\n"},"_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.1_1678785299401_0.06989082718270723"},"_hasShrinkwrap":false},"4.1.0":{"name":"rgb-hex","version":"4.1.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","//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"},"types":"./index.d.ts","gitHead":"49e46afac871cf2adde9b27bce4a6958deffffbd","bugs":{"url":"https://github.com/sindresorhus/rgb-hex/issues"},"homepage":"https://github.com/sindresorhus/rgb-hex#readme","_id":"rgb-hex@4.1.0","_nodeVersion":"18.16.1","_npmVersion":"9.2.0","dist":{"integrity":"sha512-UZLM57BW09Yi9J1R3OP8B1yCbbDK3NT8BDtihGZkGkGEs2b6EaV85rsfJ6yK4F+8UbxFFmfA+9xHT5ZWhN1gDQ==","shasum":"b343f394c8f9df629a7504c34c00b5bc63bd006f","tarball":"https://registry.npmjs.org/rgb-hex/-/rgb-hex-4.1.0.tgz","fileCount":5,"unpackedSize":4816,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCltTzof6AZkQQUtuVW3hjAjz+Bnx0frLvOD9APNjRFtQIhAPCKT6tnbRLk/ZOuEezZUZvF2qVyobgVKzOVoQ5tMYsV"}]},"_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.1.0_1693554375935_0.5374664372926783"},"_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","maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"time":{"modified":"2023-09-01T07:46:16.253Z","created":"2014-07-27T13:34:41.343Z","1.0.0":"2014-07-27T13:34:41.343Z","2.0.0":"2016-08-14T18:45:37.527Z","2.1.0":"2016-11-04T04:26:24.529Z","3.0.0":"2019-04-26T06:52:33.008Z","4.0.0":"2021-05-03T12:13:09.831Z","4.0.1":"2023-03-14T09:14:59.584Z","4.1.0":"2023-09-01T07:46:16.100Z"},"homepage":"https://github.com/sindresorhus/rgb-hex#readme","keywords":["rgb","hex","color","colour","convert","conversion","converter"],"repository":{"type":"git","url":"git+https://github.com/sindresorhus/rgb-hex.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"bugs":{"url":"https://github.com/sindresorhus/rgb-hex/issues"},"license":"MIT","readmeFilename":"readme.md","users":{"arnoldstoba":true,"seangenabe":true,"rocket0191":true,"gamersdelight":true}}