{"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","tarball":"http://registry-npm.ywwl.com/rgb/download/rgb-0.1.0.tgz","integrity":"sha512-F49dXX73a92N09uQkfCp2QjwXpmJcn9/i9PvjmwsSIXUGqRLCf/yx5Q9gRxuLQTq248kakqQuc8GX/U/CxSqlA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIELcY9517E7gby8BKjDlxnQpAFR48tLEl5gau16hyVncAiEAoE/oPuIu2VQhdyUrUxzOBUkENGgHiRucNDhkE5AoQXQ="}],"size":2093,"noattachment":false,"key":"/rgb/-/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":{},"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":1398953660578,"_cnpm_publish_time":1398953660578,"dist-tags":{"latest":"0.1.0"}}