{"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)","_id":"rgb@0.0.1","dist":{"shasum":"19dfcc8d1a1443633d54972338c1d5815b556c09","tarball":"http://registry-npm.ywwl.com/rgb/download/rgb-0.0.1.tgz","integrity":"sha512-hwBR0ttDW/I7cWimiyuK1bfQLy5YVzyiJ3zpv/BbCH4DvU2PboH/gkXjTs51WA6f4UKVkIZnyBmoo/RRcToQEg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC+WOY6b5QcyC3EUTJ5aiuFGk5bebFF6KIXA5u83D7AbQIhALKulY65MJS+WmAVk1mc0eq7M3CXVaLZuNN4Oh/Bq0hW"}],"size":1953,"noattachment":false,"key":"/rgb/-/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":{},"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","publish_time":1370607906260,"_cnpm_publish_time":1370607906260,"dist-tags":{"latest":"0.1.0"}}