{"_id":"rgb","_rev":"2933331","name":"rgb","description":"converts all sorts of colors to rgb format.","dist-tags":{"latest":"0.1.0"},"maintainers":[{"name":"kamicane","email":"kamicane@gmail.com"}],"time":{"modified":"2023-03-27T02:33:27.000Z","created":"2013-06-03T13:03:31.776Z","0.1.0":"2014-05-01T14:14:20.578Z","0.0.1":"2013-06-07T12:25:06.260Z","0.0.0":"2013-06-03T13:03:31.776Z"},"users":{"shuoshubao":true},"author":{"name":"Valerio Proietti","email":"@kamicane","url":"http://mad4milk.net"},"repository":{"type":"git","url":"https://github.com/kamicane/rgb"},"versions":{"0.1.0":{"name":"rgb","version":"0.1.0","description":"converts all sorts of colors to rgb format.","main":"./index.js","bin":{"rgb":"./bin/rgb"},"repository":{"type":"git","url":"https://github.com/kamicane/rgb"},"keywords":["rgb","hsl","hex","color","conversion"],"author":{"name":"Valerio Proietti","email":"@kamicane","url":"http://mad4milk.net"},"license":"MIT (http://mootools.net/license.txt)","bugs":{"url":"https://github.com/kamicane/rgb/issues"},"homepage":"https://github.com/kamicane/rgb","_id":"rgb@0.1.0","dist":{"shasum":"be27b291e8feffeac1bd99729721bfa40fc037b5","size":2093,"noattachment":false,"key":"/rgb/-/rgb-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/rgb/download/rgb-0.1.0.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"kamicane","email":"kamicane@gmail.com"},"maintainers":[{"name":"kamicane","email":"kamicane@gmail.com"}],"directories":{},"publish_time":1398953660578,"_hasShrinkwrap":false,"_cnpm_publish_time":1398953660578,"_cnpmcore_publish_time":"2021-12-16T20:52:34.475Z"},"0.0.1":{"name":"rgb","version":"0.0.1","description":"converts all sorts of colors to rgb format.","main":"index.js","repository":{"type":"git","url":"https://github.com/kamicane/rgb"},"keywords":["rgb","hsl","hex","color","conversion"],"author":{"name":"Valerio Proietti","email":"@kamicane","url":"http://mad4milk.net"},"license":"MIT (http://mootools.net/license.txt)","readmeFilename":"README.md","_id":"rgb@0.0.1","dist":{"shasum":"19dfcc8d1a1443633d54972338c1d5815b556c09","size":1953,"noattachment":false,"key":"/rgb/-/rgb-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/rgb/download/rgb-0.0.1.tgz"},"_from":".","_npmVersion":"1.2.15","_npmUser":{"name":"kamicane","email":"kamicane@gmail.com"},"maintainers":[{"name":"kamicane","email":"kamicane@gmail.com"}],"directories":{},"publish_time":1370607906260,"_hasShrinkwrap":false,"_cnpm_publish_time":1370607906260,"_cnpmcore_publish_time":"2021-12-16T20:52:34.871Z"},"0.0.0":{"name":"rgb","version":"0.0.0","description":"ERROR: No README.md file found!","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":"","author":{"name":"kamicane","email":"kamicane@mad4milk.net"},"license":"MIT","_id":"rgb@0.0.0","dist":{"shasum":"e0a05bcdbdf1d06de3fe83d2c5d28395bbccaeae","size":306,"noattachment":false,"key":"/rgb/-/rgb-0.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/rgb/download/rgb-0.0.0.tgz"},"_from":".","_npmVersion":"1.2.18","_npmUser":{"name":"kamicane","email":"kamicane@gmail.com"},"maintainers":[{"name":"kamicane","email":"kamicane@gmail.com"}],"directories":{},"publish_time":1370264611776,"_hasShrinkwrap":false,"_cnpm_publish_time":1370264611776,"_cnpmcore_publish_time":"2021-12-16T20:52:35.050Z"}},"readme":"rgb\n===\n\nconverts all sorts of colors to rgb format\n\nbasic usage\n-----------\n\n```js\nvar color = require(\"rgb\")\n\ncolor(\"hsl(50, 50, 50)\") //'rgb(191,170,64)'\ncolor(\"#000\") //'rgb(0,0,0)'\ncolor(\"hsl(50, 50, 50, 0.5)\") //'rgba(191,170,64,0.5)'\ncolor(\"maroon\") //'rgb(128,0,0)'\ncolor(\"#ff330033\") //'rgba(255,51,0,0.2)'\n```\n\nmatches\n-------\n\n```js\nvar color = require(\"rgb\")\n\ncolor.matches(\"#ff330033\") //true\n```\n\nreplace\n-------\n\n```js\nvar color = require(\"rgb\")\n\ncolor.replace(\"the color is #ff330033\") //'the color is rgba(255,51,0,0.2)'\n\ncolor.replace(\"the color is #ff330033\", function(match){\n    return color(match)\n}) //'the color is rgba(255,51,0,0.2)'\n```\n","_attachments":{},"homepage":"https://github.com/kamicane/rgb","bugs":{"url":"https://github.com/kamicane/rgb/issues"},"license":"MIT (http://mootools.net/license.txt)"}