{"name":"sqwish","description":"a tool for compressing CSS","homepage":"https://github.com/ded/sqwish","version":"0.0.4","author":{"name":"Dustin Diaz","email":"@ded"},"keywords":["minify","css","compress"],"main":"src/index.js","engines":{"node":">= 0.4.1"},"directories":{"lib":"src","bin":"bin"},"bin":{"sqwish":"bin/sqwish"},"_id":"sqwish@0.0.4","_engineSupported":true,"_npmVersion":"0.3.14","_nodeVersion":"v0.4.1","files":[""],"_defaultsLoaded":true,"dist":{"shasum":"1b975ec132e0a9bb2c8291b428a000b800bb834d","tarball":"http://registry-npm.ywwl.com/sqwish/download/sqwish-0.0.4.tgz","integrity":"sha512-y/ov0fma94TxkNuhp587BHTjAIdUaYCBvHeLVXwdt9pdk6KCDUv3R/cZemvchvdRsJVexk9g2lnjc098+GsPxQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICKWhc+746MiTN3dOUnTxdM0c5wT/eUlOAHnC2D3VvMlAiAD1gF1oUFCyoOhYwrrLRaSHJFu8YzHEvbUK80MW3nsAA=="}],"size":3269,"noattachment":false,"key":"/sqwish/-/sqwish-0.0.4.tgz"},"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":1303675155800,"maintainers":[{"name":"ded","email":"polvero@gmail.com"},{"name":"fat","email":"jacobthornton@gmail.com"}],"_cnpm_publish_time":1303675155800,"dist-tags":{"latest":"0.2.2"}}