{"name":"colormin","version":"1.0.5","description":"Turn a CSS color into its smallest representation.","main":"dist/index.js","files":["LICENSE-MIT","dist"],"scripts":{"lint":"eslint src","prepublish":"de dist && babel src --out-dir dist --ignore /__tests__/","test":"npm run lint && babel src --out-dir dist && ava dist/__tests__"},"homepage":"https://github.com/ben-eb/colormin","keywords":["color","colors","compression","css","minify"],"author":{"name":"Ben Briggs","email":"beneb.info@gmail.com","url":"http://beneb.info"},"license":"MIT","dependencies":{"color":"^0.10.1","css-color-names":"0.0.3"},"devDependencies":{"ava":"github:sindresorhus/ava#945dbea40a6a500a24d54ebcc7e10dcd75647fc7","babel-cli":"^6.3.17","babel-core":"^6.3.26","babel-plugin-add-module-exports":"^0.1.2","babel-preset-es2015-loose":"^6.1.4","babel-preset-stage-0":"^6.3.13","del-cli":"^0.1.2","eslint":"^1.10.3"},"repository":{"type":"git","url":"git+https://github.com/ben-eb/colormin.git"},"gitHead":"f59fe5853d13152903eb8cdbfccd80ac7b8622af","bugs":{"url":"https://github.com/ben-eb/colormin/issues"},"_id":"colormin@1.0.5","_shasum":"59c482e506afdc4e8c715b23d908cc4daaf67316","_from":".","_npmVersion":"3.3.9","_nodeVersion":"4.2.1","_npmUser":{"name":"beneb","email":"beneb.info@gmail.com"},"dist":{"shasum":"59c482e506afdc4e8c715b23d908cc4daaf67316","tarball":"http://registry-npm.ywwl.com/colormin/download/colormin-1.0.5.tgz","integrity":"sha512-rpRY4VXzMIsNmvOZvtX3RJm8hZH4WXURCJs2m2epge0DS+kxcEiwncHK6jpaFomP4q/0riUOFBtmm6cPj5/DTg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB9kPhu65zL+8VTptjkPBPa+JZj7DX9cIwnKA/SREZfaAiEA8lbzBeuT9/CpiHBSTTRRerRjr+wIgaFgnm/FoFzZv9w="}],"size":3227,"noattachment":false,"key":"/colormin/-/colormin-1.0.5.tgz"},"maintainers":[{"name":"beneb","email":"therealbenbriggs@hotmail.com"}],"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":1451153271025,"_cnpm_publish_time":1451153271025,"dist-tags":{"latest":"1.1.2"}}