{"name":"sqwish","description":"a tool for compressing CSS","homepage":"https://github.com/ded/sqwish","version":"0.2.1","author":{"name":"Dustin Diaz","email":"@ded"},"keywords":["minify","css","compress"],"main":"src/index.js","engines":{"node":">= 0.4.1"},"directories":{"lib":"src","bin":"bin"},"devDependencies":{"sink-test":">= 0.0.6"},"scripts":{"test":"node tests/tests.js"},"preferGlobal":true,"bin":{"sqwish":"bin/sqwish"},"_id":"sqwish@0.2.1","dist":{"shasum":"4feed16ce83d2483a561ac45ce323c4209c72def","tarball":"http://registry-npm.ywwl.com/sqwish/download/sqwish-0.2.1.tgz","integrity":"sha512-pyoPioj0g+Kwy/FtN+YUKCPO1otswqCiGEA2tOeGV8ZpaLR38K4wEUCMi7/mV2JvOlQEBe10XUgwKUC25KVG9w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC2+8eLE8kLST6OYJU444WniJUwWCo0zkakMLQd1gH6iwIgXxzltz87plCQlC7r2BRU7D8HG6r1CqGC/fWb6vh7FmU="}],"size":4878,"noattachment":false,"key":"/sqwish/-/sqwish-0.2.1.tgz"},"_npmVersion":"1.1.66","_npmUser":{"name":"ded","email":"polvero@gmail.com"},"maintainers":[{"name":"ded","email":"polvero@gmail.com"},{"name":"fat","email":"jacobthornton@gmail.com"}],"readme":"Welcome to Sqwish\n=================\n\nA [Node](http://nodejs.org) based CSS Compressor. It works like this.\n\n``` javascript\nrequire('sqwish').minify('body { color: #ff33cc; }');\n// => \"body{color:#f3c}\"\n```\n\nCLI\n---\n\nInstall it.\n\n    $ npm install -g sqwish\n\nUse it like this:\n\n    $ sqwish app.css # default output is <file>.min.css therefore app.css => app.min.css\n    $ # or...\n    $ sqwish css/styles.css -o prod/something-else.min.css\n\nNotes\n-----\n\nSqwish does not attempt to fix invalid CSS, therefore, at minimum, your CSS should at least follow the basic rules:\n\n``` css\nselectors[,more selectors] {\n  property: value;\n  another-property: another value;\n}\n```\n\nStrict Optimizations\n--------------------\n\nAside from regular minification, in <code>--strict</code> mode Sqwish will combine duplicate selectors and merge duplicate properties.\n\n``` css\n/* before */\ndiv {\n  color: orange;\n  background: red;\n}\ndiv {\n  color: #ff33cc;\n  margin: 1px 0px 1px 0px;\n}\n\n/* after */\ndiv{color:#f3c;background:red;margin:1px 0}\n```\n\nThis mode can be enabled as so:\n\n    sqwish.minify(css, true);\n\non the command line\n\n    $ sqwish styles.css --strict\n\nDevelopers\n----------\n\nBe sure you have the proper testing harness set up ahead of time by installing the <code>sink-test</code> submodule\n\n    $ npm install --dev\n\nTests can be added in <code>tests/tests.js</code>, and then run as such:\n\n    $ npm test\n\nLicense\n-------\n\nSqwish is copyright Dustin Diaz 2011 under MIT License\n\n**Happy Sqwishing!**","publish_time":1355768974757,"_cnpm_publish_time":1355768974757,"dist-tags":{"latest":"0.2.2"}}