{"name":"colormin","version":"1.0.0","description":"Turn a CSS color into its smallest representation.","main":"index.js","homepage":"https://github.com/ben-eb/colormin","scripts":{"test":"tape test.js"},"keywords":["color","colors","compression","css","minify"],"author":{"name":"Ben Briggs","email":"therealbenbriggs@hotmail.com","url":"http://beneb.info"},"license":"MIT","dependencies":{"color":"^0.7.3","color-string":"git+https://github.com/ben-eb/color-string#fix-transparency","css-color-names":"0.0.1"},"devDependencies":{"tape":"^3.5.0"},"repository":{"type":"git","url":"git://github.com/ben-eb/colormin.git"},"gitHead":"643496337de8d0fed365dbf25e32205a123993ef","bugs":{"url":"https://github.com/ben-eb/colormin/issues"},"_id":"colormin@1.0.0","_shasum":"73d712daaed159a5d3e424f379013679056c79fa","_from":".","_npmVersion":"2.1.11","_nodeVersion":"0.10.33","_npmUser":{"name":"beneb","email":"therealbenbriggs@hotmail.com"},"maintainers":[{"name":"beneb","email":"therealbenbriggs@hotmail.com"}],"dist":{"shasum":"73d712daaed159a5d3e424f379013679056c79fa","tarball":"http://registry-npm.ywwl.com/colormin/download/colormin-1.0.0.tgz","integrity":"sha512-qEAhvXSk6pI5UCLSbRuQxchsrGhktj6A0mLbYcMPrpaCU9+oR7kMo96q5QCk/sn+OI4PYqmn8mKjzL/gsqPWFw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBz0HzTPnbDx33twZ+KNAfSg9LbwcUqLiKTS1WHd6OhhAiEA6WSTlttfaxcxL5dbaOYN4ZRdkQt3HOHiAejamlaT2Rg="}],"size":2749,"noattachment":false,"key":"/colormin/-/colormin-1.0.0.tgz"},"directories":{},"readme":"# colormin [![Build Status](https://travis-ci.org/ben-eb/colormin.svg?branch=master)][ci] [![NPM version](https://badge.fury.io/js/colormin.svg)][npm] [![Dependency Status](https://gemnasium.com/ben-eb/colormin.svg)][deps]\n\n> Turn a CSS color into its smallest representation.\n\n## Install\n\nWith [npm](https://npmjs.org/package/colormin) do:\n\n```\nnpm install colormin --save\n```\n\n\n## Example\n\n```js\nvar colormin = require('colormin');\nconsole.log(colormin('rgba(255, 0, 0, 1)'));\n\n// => 'red'\n```\n\ncolormin works for rgb, rgba, hsl, hsla, hex & css color keywords. See more\nexample output in the [tests](src/__tests__/index.js). Note that colormin does\nnot convert invalid CSS colors, as it is not a color validator.\n\n\n## API\n\n### colormin(color, [options])\n\n#### color\n\nType: `string`  \n\nThe color to minify.\n\n#### options\n\n##### legacy\n\nType: `boolean`  \nDefault: `false`\n\nSet this to `true` to enable IE < 10 compatibility; the browser chokes on the\n`transparent` keyword, so in this mode the conversion from `rgba(0,0,0,0)`\nis turned off.\n\n## Contributing\n\nPull requests are welcome. If you add functionality, then please add unit tests\nto cover it.\n\n\n## License\n\nMIT © [Ben Briggs](http://beneb.info)\n\n[ci]:   https://travis-ci.org/ben-eb/colormin\n[deps]: https://gemnasium.com/ben-eb/colormin\n[npm]:  http://badge.fury.io/js/colormin\n","publish_time":1423573303451,"_cnpm_publish_time":1423573303451,"dist-tags":{"latest":"1.1.2"}}