{"_id":"resmin","_rev":"37-715718f6cee2e703a45e1214c9d6689e","name":"resmin","description":"All-in-one compressor/merger/minifier middleware for connect/express","dist-tags":{"latest":"0.1.3"},"versions":{"0.0.2":{"name":"resmin","version":"0.0.2","author":{"name":"Marcus Ekwall"},"description":"All-in-one compressor/merger/minifier middleware for connect/express","homepage":"https://github.com/mekwall/node-resmin","repository":{"type":"git","url":"git://github.com/mekwall/node-resmin.git"},"engines":{"node":">= 0.4.x"},"main":"./index.js","dependencies":{"uglify-js":">= 1.0.1","uglifycss":">= 0.0.3","mime":">= 1.2.2","compress":">= 0.1.9"},"_npmJsonOpts":{"file":"/home/oddy/.npm/resmin/0.0.2/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"resmin@0.0.2","devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.13","_nodeVersion":"v0.4.10-pre","_defaultsLoaded":true,"dist":{"shasum":"e04d2135707e15870b040cbd9f4a306533d8423c","tarball":"https://registry.npmjs.org/resmin/-/resmin-0.0.2.tgz","integrity":"sha512-nrBaPxY7fcxBJE0zY4FSEHfWdnkOhCaQ8P3AAFqRr7sGn2jjcpLGiXvAQullFlfjOBuU43Qn/IQxu4PLrTViFQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAtFxtPDgdHRGBGzSZx1GTh9PobRHt4kkNTsecsJtAYOAiB+jG5pyXrCHoAafDJewXBOWZ0MU8EOh8k1mjQ9VMVUpg=="}]},"scripts":{},"directories":{}},"0.0.3":{"name":"resmin","version":"0.0.3","author":{"name":"Marcus Ekwall"},"description":"All-in-one compressor/merger/minifier middleware for connect/express","homepage":"https://github.com/mekwall/node-resmin","repository":{"type":"git","url":"git://github.com/mekwall/node-resmin.git"},"engines":{"node":">= 0.4.x"},"main":"./index.js","dependencies":{"uglify-js":">= 1.0.1","uglifycss":">= 0.0.3","mime":">= 1.2.2","compress":">= 0.1.9"},"_npmJsonOpts":{"file":"/home/oddy/.npm/resmin/0.0.3/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"resmin@0.0.3","devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.13","_nodeVersion":"v0.4.10-pre","_defaultsLoaded":true,"dist":{"shasum":"3a3a9e6400b8d15e2740e1b74b759e8878cec4d9","tarball":"https://registry.npmjs.org/resmin/-/resmin-0.0.3.tgz","integrity":"sha512-Mb3xFOjBM420mRxV7fYBNi1Qibz7W4vKV0s9w7iPi76xDSGAH2Lqqtj8xA+s7ZCro0wK/7tq70/Yf5fyllpGcw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBkoBPQ8Y3uBt4b6VnW6YTg7oACRhYpO9bchoeWZP3KqAiEAyZB7EMR09tL3fAKRLGADcfasMamkUoi58smUxxuKl1c="}]},"scripts":{},"directories":{}},"0.0.4":{"name":"resmin","version":"0.0.4","author":{"name":"Marcus Ekwall"},"description":"All-in-one compressor/merger/minifier middleware for connect/express","homepage":"https://github.com/mekwall/node-resmin","repository":{"type":"git","url":"git://github.com/mekwall/node-resmin.git"},"engines":{"node":">= 0.4.x"},"main":"./index.js","dependencies":{"uglify-js":">= 1.0.1","uglifycss":">= 0.0.3","mime":">= 1.2.2","compress":">= 0.1.9"},"_npmJsonOpts":{"file":"/home/oddy/.npm/resmin/0.0.4/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"resmin@0.0.4","devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.13","_nodeVersion":"v0.4.10-pre","_defaultsLoaded":true,"dist":{"shasum":"27d90aaebee1cd260228d750a71af31f73a5f8a8","tarball":"https://registry.npmjs.org/resmin/-/resmin-0.0.4.tgz","integrity":"sha512-2g5qsS25J1iarkhSWoK5L8o5/7+CjYpm+RlF1Q9q0bhZAlPmQQ+IGNU4lBQ73/7lvO3HeIK8ZVylQu1F0DuLbA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC3pBfZrJwNQHLZ+8h0JVNPGl2SD/1V1LgdscUYRRSUiQIhAIeSHFo7fTG0vUxVjyt/hK0ZduBNOl1JZlyl6Hs9bAIP"}]},"scripts":{},"directories":{}},"0.0.5":{"name":"resmin","version":"0.0.5","author":{"name":"Marcus Ekwall"},"description":"All-in-one compressor/merger/minifier middleware for connect/express","homepage":"https://github.com/mekwall/node-resmin","repository":{"type":"git","url":"git://github.com/mekwall/node-resmin.git"},"engines":{"node":">= 0.4.x"},"main":"./index.js","dependencies":{"uglify-js":">= 1.0.1","uglifycss":">= 0.0.3","mime":">= 1.2.2","compress":">= 0.1.9"},"_npmJsonOpts":{"file":"/home/oddy/.npm/resmin/0.0.5/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"resmin@0.0.5","devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.15","_nodeVersion":"v0.4.10-pre","_defaultsLoaded":true,"dist":{"shasum":"e03df0d22a572ef2d85c775f9a22248ba9ff09c5","tarball":"https://registry.npmjs.org/resmin/-/resmin-0.0.5.tgz","integrity":"sha512-a9yW+aCiAqzWO1Vqw/0gZjrtzScb8Jug9yIBb/W+je5EuUgAxyTFxVBiNhYQQUYvzTAzEto/7F6IQUT7H+mbiQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFLBwOtu9z/rE0ZC2qi7+wKFOOt1PvRIbfB4sQXbNqdsAiAmprtNjqCDCByA1VXMWr0ArAlpc0OqQxn+1DYPu4JYWQ=="}]},"scripts":{},"directories":{}},"0.0.5-1":{"name":"resmin","version":"0.0.5-1","author":{"name":"Marcus Ekwall"},"description":"All-in-one compressor/merger/minifier middleware for connect/express","homepage":"https://github.com/mekwall/node-resmin","repository":{"type":"git","url":"git://github.com/mekwall/node-resmin.git"},"engines":{"node":">= 0.4.x"},"main":"./index.js","dependencies":{"uglify-js":">= 1.0.1","uglifycss":">= 0.0.3","mime":">= 1.2.2","compress":">= 0.1.9"},"_npmJsonOpts":{"file":"/home/oddy/.npm/resmin/0.0.5-1/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"resmin@0.0.5-1","devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.15","_nodeVersion":"v0.4.10-pre","_defaultsLoaded":true,"dist":{"shasum":"9f8b2df10dc2b88578ced972d726d1843d4a1c05","tarball":"https://registry.npmjs.org/resmin/-/resmin-0.0.5-1.tgz","integrity":"sha512-y+N/Aujt94CimRW9xuaugVY7ZMLP6Wtgg7+5ELzgNoaUxlqOeG2beVMqlDw+YEZQ+ClHrEDdadTDgnXwo4Nvsw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDdi7LBwJyAsifvvdOW0/0ewrzMgj3xmh8guxLrRMuGZAIhAOhImDBMEO6Rd8V22On022XXtlEgY0vUzMlNs9oo16MY"}]},"scripts":{},"directories":{}},"0.0.5-2":{"name":"resmin","version":"0.0.5-2","author":{"name":"Marcus Ekwall"},"description":"All-in-one compressor/merger/minifier middleware for connect/express","homepage":"https://github.com/mekwall/node-resmin","repository":{"type":"git","url":"git://github.com/mekwall/node-resmin.git"},"engines":{"node":">= 0.4.x"},"main":"./index.js","dependencies":{"uglify-js":">= 1.0.1","uglifycss":">= 0.0.3","mime":">= 1.2.2","compress":">= 0.1.9"},"_npmJsonOpts":{"file":"/home/oddy/.npm/resmin/0.0.5-2/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"resmin@0.0.5-2","devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.15","_nodeVersion":"v0.4.10-pre","_defaultsLoaded":true,"dist":{"shasum":"5a65a771ee7829d1831f1ad3b3e7a1daafc2e727","tarball":"https://registry.npmjs.org/resmin/-/resmin-0.0.5-2.tgz","integrity":"sha512-NcSZoJBc2CrV7awdD3CmxVuKsaAxEqmH+qNUYuTOt9ghgjINkrbwMotIbDQk+Z4sIzce4tSvBKRmdNbuOUH3QQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBF7QIJbrZl9XABXx53KDORtV2uwXcnQHDPy9+GS8KkcAiEA7WfIc2uani8zud+TTkHrBiYrtiE7N5JJJaSPP0BBfqw="}]},"scripts":{},"maintainers":[{"name":"mekwall","email":"marcus.ekwall@gmail.com"}],"directories":{}},"0.0.6-1":{"name":"resmin","version":"0.0.6-1","author":{"name":"Marcus Ekwall"},"description":"All-in-one compressor/merger/minifier middleware for connect/express","homepage":"https://github.com/mekwall/node-resmin","repository":{"type":"git","url":"git://github.com/mekwall/node-resmin.git"},"engines":{"node":">= 0.4.x"},"main":"./index.js","dependencies":{"uglify-js":">= 1.0.1","uglifycss":">= 0.0.3","mime":">= 1.2.2","compress":">= 0.1.9"},"_npmJsonOpts":{"file":"/home/oddy/.npm/resmin/0.0.6-1/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"resmin@0.0.6-1","devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.27","_nodeVersion":"v0.4.11","_defaultsLoaded":true,"dist":{"shasum":"c72db7937a01e8d7be9ca7f25e06ecbe9d73b169","tarball":"https://registry.npmjs.org/resmin/-/resmin-0.0.6-1.tgz","integrity":"sha512-j2JgABohDoeTU+yuWQXxwQPpkaVEcSsy3BMDzqfvetUf2/4ST3/A9BUIiLcIeERlb2Q8vEOJJRWKH+n5AMnavw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC4xMHewEIc4QHXpeJmq8QC3VftOCqUObgDXhUYPJSwvAiBYnhNjnZPhue+ohen4mRW7TdlSBnuqMQBXmGqyCxq5vw=="}]},"maintainers":[{"name":"mekwall","email":"marcus.ekwall@gmail.com"}],"directories":{}},"0.0.6-2":{"name":"resmin","version":"0.0.6-2","author":{"name":"Marcus Ekwall"},"description":"All-in-one compressor/merger/minifier middleware for connect/express","homepage":"https://github.com/mekwall/node-resmin","repository":{"type":"git","url":"git://github.com/mekwall/node-resmin.git"},"engines":{"node":">= 0.4.x"},"main":"./index.js","dependencies":{"uglify-js":">= 1.0.1","uglifycss":">= 0.0.3","mime":">= 1.2.2","compress":">= 0.1.9"},"_npmJsonOpts":{"file":"/home/oddy/.npm/resmin/0.0.6-2/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"resmin@0.0.6-2","devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.27","_nodeVersion":"v0.4.11","_defaultsLoaded":true,"dist":{"shasum":"d9215f70ff0d5b29fa7d4b9d6524693588bce78f","tarball":"https://registry.npmjs.org/resmin/-/resmin-0.0.6-2.tgz","integrity":"sha512-psZrOEL6sn5esHpaTAX7a8wJAcCY/ngpbGTG/DoKRd4sfQrZEL/UuxZnm9FKvWccHP9QcuXvsPHEWoe1GQ1VgA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDLeN2Tb5iF6zAIItkoZR2MKVmUzVPYo+5Ap8C+3Ku9NAIhAM3U8VoSCaAVq7tsU1+uT1/KMAn39V+zJj+SPbnRPVin"}]},"maintainers":[{"name":"mekwall","email":"marcus.ekwall@gmail.com"}],"directories":{}},"0.1.0":{"name":"resmin","version":"0.1.0","author":{"name":"Marcus Ekwall","email":"marcus.ekwall@gmail.com"},"description":"All-in-one compressor/merger/minifier middleware for connect/express","keywords":["minifier","minify","compressor","resource manager","uglify"],"homepage":"https://github.com/mekwall/node-resmin","repository":{"type":"git","url":"git://github.com/mekwall/node-resmin.git"},"engines":{"node":">= 0.4.x"},"main":"index","dependencies":{"uglify-js":">= 1.0.1","uglifycss":">= 0.0.3","mime":">= 1.2.2","compress":">= 0.1.9"},"_npmJsonOpts":{"file":"/home/oddy/.npm/resmin/0.1.0/package/package.json","wscript":false,"contributors":false,"serverjs":false},"_id":"resmin@0.1.0","devDependencies":{},"_engineSupported":true,"_npmVersion":"1.0.27","_nodeVersion":"v0.4.11","_defaultsLoaded":true,"dist":{"shasum":"d132eb17f81aba8e6456a7678faad20cbdb518f6","tarball":"https://registry.npmjs.org/resmin/-/resmin-0.1.0.tgz","integrity":"sha512-/eh1wcGGfHAoXC56MLc4T6FjZ8kOg/CTrXqR76+Pxfs4zxGK40nuZcb3AHYT84RTpDsKofsuIYJlnD7u5UjQgg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDJ4siGkXkng+fbBgGQyW/OtowCGztGSnK6bW/ptshBSAiEAyOyrQYK4/nrWehDxvOxAwYRtxUFEeArnNFjy0L/YOcs="}]},"maintainers":[{"name":"mekwall","email":"marcus.ekwall@gmail.com"}],"directories":{}},"0.1.1":{"name":"resmin","version":"0.1.1","author":{"name":"Marcus Ekwall","email":"marcus.ekwall@gmail.com"},"maintainer":"Marcus Ekwall","description":"All-in-one compressor/merger/minifier middleware for connect/express","category":["Middleware","Parsers / Generators","Cache","Connect","Express"],"keywords":["minifier","minify","compressor","resource manager","uglify"],"homepage":"https://github.com/mekwall/node-resmin","repository":{"type":"git","url":"git://github.com/mekwall/node-resmin.git"},"engines":{"node":">= 0.4.x"},"main":"index","dependencies":{"uglify-js":">= 1.0.1","uglifycss":">= 0.0.3","mime":">= 1.2.2","gzip-js":">= 0.3.1","async":">= 0.1.15"},"_npmUser":{"name":"mekwall","email":"marcus.ekwall@gmail.com"},"_id":"resmin@0.1.1","devDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.0-beta-10","_nodeVersion":"v0.6.7","_defaultsLoaded":true,"dist":{"shasum":"edbf967fe19e365cb5fe0fc46b0b32747a8a9826","tarball":"https://registry.npmjs.org/resmin/-/resmin-0.1.1.tgz","integrity":"sha512-JRFoD4lhkW/KZk3YOfXq+w5LBBvmZBKRslyph+azZ45AezpsRhVBcJnS9903gVwvtiQWbLqkjQwUHP7wnUoBsw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDf5HMkSYta16rWg36USyg+072Y767J8REOWNWvz8dLfQIgFNf8rMGjAdItS1JYb6EF6ICQNgurwYcy5d+5ZRQNk7U="}]},"readme":"# resmin\n\t\nAll-in-one minifier/merger/compiler/compressor middleware for connect/express.\n\n## Installation\n\n```bash\n$ npm install resmin\n```\n\n## Dependencies\n\nResmin depends on the following libraries:\n\n- [uglify-js](https://github.com/mishoo/UglifyJS)\n- [uglifycss](https://github.com/fmarcia/UglifyCSS)\n- [gzip-js](https://github.com/beatgammit/gzip-js)\n- [mime](https://github.com/bentomas/node-mime)\n\n## Supported\n\nResmin has integrated support for the the following libraries:\n\n- [stylus](http://learnboost.github.com/stylus/)\n- [less](https://github.com/cloudhead/less.js)\n\n## Basic usage\n\nResmin is built to be dead simple to use and implement.\n\n###Example configuration:\n\n```javascript\nvar resminConfig = {\n    gzip: true,\n    merge: true,\n    minify: true,\n    js: {\n        \"all\": [\n            \"//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js\",\n            \"//ajax.googleapis.com/ajax/libs/jqueryui/1.8.14/jquery-ui.min.js\",\n            \"/js/foo.js\",\n            \"/js/bar.js\",\n            \"/js/baz.js\"\n        ]\n    },\n    css: {\n        \"all\": [\n            \"//fonts.googleapis.com/css?family=Inconsolata:regular&v1\",\n            \"/css/foo.css\",\n            \"/css/bar.css\",\n            \"/css/baz.css\"\n        ]\n    }\n};\n```\n    \nInstantiate resmin and add the middleware and dynamic helper to connect/express.\n    \n    var resmin = require('resmin');\n\tapp.use(resmin.middleware(express, __dirname+'/public/', resminConfig));\n    app.dynamicHelpers(resmin.dynamicHelper);\n\nThe resmin variable is now accessible through your template engine of choice.\n\n###Example when using jade/haml:\n\n```yaml\n- each url in resmin.css.all\n  link(rel='stylesheet', href=url)\n- each url in resmin.js.all\n  script(src=url)\n```\n\n###Example when using ejs:\n\n```html\n<% for (url in resmin.css.all) { %>\n    <link rel=\"stylesheet\" href=\"<%= resmin.css.all[url] %>\">\n<% } %>\n<% for (url in resmin.js.all) { %>\n    <script src=\"<%= resmin.js.all[url] %>\"></script>\n<% } %>\n```\n\n###Example when using less:\n\nJust add your .less files either to the css group. They will be  \nautomatically parsed, compiled, merged and compressed according to your settings.\n\n```javascript\nvar resminConfig = {\n    ...\n    css: {\n        \"/css/foo.less\",\n        \"/css/bar.less\",\n        \"/css/baz.less\"\n    }\n}\n```\n\n###Example when using stylus:\n\nJust add your .less files either to the css group. They will be\nautomatically parsed, compiled, merged and compressed according to your settings.\n\n```javascript\nvar resminConfig = {\n    ...\n    css: {\n        \"/css/foo.styl\",\n        \"/css/bar.styl\",\n        \"/css/baz.styl\"\n    },\n\tstylus: function(style) {\n\t\t// Add your own stylus settings\n\t\treturn style;\n\t}\n}\n```\n\n## License\n\nCopyright (c) 2011 Marcus Ekwall, http://writeless.se/\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n      \n## Additional credits\n\nCredits and thanks to [tomgallacher](https://github.com/tomgallacher) for \n[gzippo](https://github.com/tomgallacher/gzippo) and [bengourley](https://github.com/bengourley) \nfor [minj](https://github.com/bengourley/minj) which resmin is loosely based upon.\n","maintainers":[{"name":"mekwall","email":"marcus.ekwall@gmail.com"}],"directories":{}},"0.1.1-2":{"name":"resmin","version":"0.1.1-2","author":{"name":"Marcus Ekwall","email":"marcus.ekwall@gmail.com"},"maintainer":"Marcus Ekwall","description":"All-in-one compressor/merger/minifier middleware for connect/express","category":["Middleware","Parsers / Generators","Cache","Connect","Express"],"keywords":["minifier","minify","compressor","resource manager","uglify"],"homepage":"https://github.com/mekwall/node-resmin","repository":{"type":"git","url":"git://github.com/mekwall/node-resmin.git"},"engines":{"node":">= 0.4.x"},"main":"index","dependencies":{"uglify-js":">= 1.0.1","csso":">= 1.2.9","mime":">= 1.2.2","gzip-js":">= 0.3.1","async":">= 0.1.15"},"_npmUser":{"name":"mekwall","email":"marcus.ekwall@gmail.com"},"_id":"resmin@0.1.1-2","devDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.0-beta-10","_nodeVersion":"v0.6.7","_defaultsLoaded":true,"dist":{"shasum":"e3608c3a7f107fb5d8654c773da27e5c5516de87","tarball":"https://registry.npmjs.org/resmin/-/resmin-0.1.1-2.tgz","integrity":"sha512-bT4sucILTI/F/IyYdw1vJoazfuWIW4O1zEzzE27vUqWXCrtVP5UjBPCOzn1/MrfnS5G8FOQHPQtBjJ0R4o217w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBInaS+HwXeGla7UJZDh2/rzyi3mb6ZTMQ9D1H67VA62AiBY+XZUN9u3m0b0imRHXER4V9prYsFEqrB8IX1dHsF8fA=="}]},"readme":"# resmin\n\t\nAll-in-one minifier/merger/compiler/compressor middleware for connect/express.\n\n## Installation\n\n```bash\n$ npm install resmin\n```\n\n## Dependencies\n\nResmin depends on the following libraries:\n\n- [uglify-js](https://github.com/mishoo/UglifyJS)\n- [uglifycss](https://github.com/fmarcia/UglifyCSS)\n- [gzip-js](https://github.com/beatgammit/gzip-js)\n- [mime](https://github.com/bentomas/node-mime)\n\n## Supported\n\nResmin has integrated support for the the following libraries:\n\n- [stylus](http://learnboost.github.com/stylus/)\n- [less](https://github.com/cloudhead/less.js)\n\n## Basic usage\n\nResmin is built to be dead simple to use and implement.\n\n###Example configuration:\n\n```javascript\nvar resminConfig = {\n    gzip: true,\n    merge: true,\n    minify: true,\n    js: {\n        \"all\": [\n            \"//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js\",\n            \"//ajax.googleapis.com/ajax/libs/jqueryui/1.8.14/jquery-ui.min.js\",\n            \"/js/foo.js\",\n            \"/js/bar.js\",\n            \"/js/baz.js\"\n        ]\n    },\n    css: {\n        \"all\": [\n            \"//fonts.googleapis.com/css?family=Inconsolata:regular&v1\",\n            \"/css/foo.css\",\n            \"/css/bar.css\",\n            \"/css/baz.css\"\n        ]\n    }\n};\n```\n    \nInstantiate resmin and add the middleware and dynamic helper to connect/express.\n    \n    var resmin = require('resmin');\n\tapp.use(resmin.middleware(express, __dirname+'/public/', resminConfig));\n    app.dynamicHelpers(resmin.dynamicHelper);\n\nThe resmin variable is now accessible through your template engine of choice.\n\n###Example when using jade/haml:\n\n```yaml\n- each url in resmin.css.all\n  link(rel='stylesheet', href=url)\n- each url in resmin.js.all\n  script(src=url)\n```\n\n###Example when using ejs:\n\n```html\n<% for (url in resmin.css.all) { %>\n    <link rel=\"stylesheet\" href=\"<%= resmin.css.all[url] %>\">\n<% } %>\n<% for (url in resmin.js.all) { %>\n    <script src=\"<%= resmin.js.all[url] %>\"></script>\n<% } %>\n```\n\n###Example when using less:\n\nJust add your .less files either to the css group. They will be  \nautomatically parsed, compiled, merged and compressed according to your settings.\n\n```javascript\nvar resminConfig = {\n    ...\n    css: {\n        \"/css/foo.less\",\n        \"/css/bar.less\",\n        \"/css/baz.less\"\n    }\n}\n```\n\n###Example when using stylus:\n\nJust add your .less files either to the css group. They will be\nautomatically parsed, compiled, merged and compressed according to your settings.\n\n```javascript\nvar resminConfig = {\n    ...\n    css: {\n        \"/css/foo.styl\",\n        \"/css/bar.styl\",\n        \"/css/baz.styl\"\n    },\n\tstylus: function(style) {\n\t\t// Add your own stylus settings\n\t\treturn style;\n\t}\n}\n```\n\n## License\n\nCopyright (c) 2011 Marcus Ekwall, http://writeless.se/\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n      \n## Additional credits\n\nCredits and thanks to [tomgallacher](https://github.com/tomgallacher) for \n[gzippo](https://github.com/tomgallacher/gzippo) and [bengourley](https://github.com/bengourley) \nfor [minj](https://github.com/bengourley/minj) which resmin is loosely based upon.\n","maintainers":[{"name":"mekwall","email":"marcus.ekwall@gmail.com"}],"directories":{}},"0.1.2":{"name":"resmin","version":"0.1.2","author":{"name":"Marcus Ekwall","email":"marcus.ekwall@gmail.com"},"maintainer":"Marcus Ekwall","description":"All-in-one compressor/merger/minifier middleware for connect/express","category":["Middleware","Parsers / Generators","Cache","Connect","Express"],"keywords":["minifier","minify","compressor","resource manager","uglify"],"homepage":"https://github.com/mekwall/node-resmin","repository":{"type":"git","url":"git://github.com/mekwall/node-resmin.git"},"engines":{"node":">= 0.4.x"},"main":"index","dependencies":{"uglify-js":">= 1.0.1","csso":">= 1.2.9","mime":">= 1.2.2","gzip-js":">= 0.3.1","gowiththeflow":">= 1.0.0"},"_npmUser":{"name":"mekwall","email":"marcus.ekwall@gmail.com"},"_id":"resmin@0.1.2","devDependencies":{},"optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.0-2","_nodeVersion":"v0.6.8","_defaultsLoaded":true,"dist":{"shasum":"42ed97000f9df8c13d8f069c1b73da275ca18adc","tarball":"https://registry.npmjs.org/resmin/-/resmin-0.1.2.tgz","integrity":"sha512-NDc9NpHUV7KvmmYYBPfmcauYWS4HeuWngW9Pnq4JQGlSLAzM3QQzval1kfDkA8BwaXonAt5cgG9K072gpWNG1Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDO6frLUifS+FJeNO5ui5frh8bwlLI0jKHxaNp3XkkKiAIgFcTjimAo3xZfELXUgTpwPI+BQhk8gDf7tamKlqxPoas="}]},"readme":"# resmin\n\t\nAll-in-one minifier/merger/compiler/compressor middleware for connect/express.\n\n## Installation\n\n```bash\n$ npm install resmin\n```\n\n## Dependencies\n\nResmin depends on the following libraries:\n\n- [uglify-js](https://github.com/mishoo/UglifyJS)\n- [uglifycss](https://github.com/fmarcia/UglifyCSS)\n- [gzip-js](https://github.com/beatgammit/gzip-js)\n- [mime](https://github.com/bentomas/node-mime)\n\n## Supported\n\nResmin has integrated support for the the following libraries:\n\n- [stylus](http://learnboost.github.com/stylus/)\n- [less](https://github.com/cloudhead/less.js)\n\n## Basic usage\n\nResmin is built to be dead simple to use and implement.\n\n###Example configuration:\n\n```javascript\nvar resminConfig = {\n    gzip: true,\n    merge: true,\n    minify: true,\n    js: {\n        \"all\": [\n            \"//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js\",\n            \"//ajax.googleapis.com/ajax/libs/jqueryui/1.8.14/jquery-ui.min.js\",\n            \"/js/foo.js\",\n            \"/js/bar.js\",\n            \"/js/baz.js\"\n        ]\n    },\n    css: {\n        \"all\": [\n            \"//fonts.googleapis.com/css?family=Inconsolata:regular&v1\",\n            \"/css/foo.css\",\n            \"/css/bar.css\",\n            \"/css/baz.css\"\n        ]\n    }\n};\n```\n    \nInstantiate resmin and add the middleware and dynamic helper to connect/express.\n    \n    var resmin = require('resmin');\n\tapp.use(resmin.middleware(express, __dirname+'/public/', resminConfig));\n    app.dynamicHelpers(resmin.dynamicHelper);\n\nThe resmin variable is now accessible through your template engine of choice.\n\n###Example when using jade/haml:\n\n```yaml\n- each url in resmin.css.all\n  link(rel='stylesheet', href=url)\n- each url in resmin.js.all\n  script(src=url)\n```\n\n###Example when using ejs:\n\n```html\n<% for (url in resmin.css.all) { %>\n    <link rel=\"stylesheet\" href=\"<%= resmin.css.all[url] %>\">\n<% } %>\n<% for (url in resmin.js.all) { %>\n    <script src=\"<%= resmin.js.all[url] %>\"></script>\n<% } %>\n```\n\n###Example when using less:\n\nJust add your .less files either to the css group. They will be  \nautomatically parsed, compiled, merged and compressed according to your settings.\n\n```javascript\nvar resminConfig = {\n    ...\n    css: {\n        \"/css/foo.less\",\n        \"/css/bar.less\",\n        \"/css/baz.less\"\n    }\n}\n```\n\n###Example when using stylus:\n\nJust add your .less files either to the css group. They will be\nautomatically parsed, compiled, merged and compressed according to your settings.\n\n```javascript\nvar resminConfig = {\n    ...\n    css: {\n        \"/css/foo.styl\",\n        \"/css/bar.styl\",\n        \"/css/baz.styl\"\n    },\n\tstylus: function(style) {\n\t\t// Add your own stylus settings\n\t\treturn style;\n\t}\n}\n```\n\n## License\n\nCopyright (c) 2011 Marcus Ekwall, http://writeless.se/\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n      \n## Additional credits\n\nCredits and thanks to [tomgallacher](https://github.com/tomgallacher) for \n[gzippo](https://github.com/tomgallacher/gzippo) and [bengourley](https://github.com/bengourley) \nfor [minj](https://github.com/bengourley/minj) which resmin is loosely based upon.\n","maintainers":[{"name":"mekwall","email":"marcus.ekwall@gmail.com"}],"directories":{}},"0.1.2-1":{"name":"resmin","version":"0.1.2-1","author":{"name":"Marcus Ekwall","email":"marcus.ekwall@gmail.com"},"maintainer":"Marcus Ekwall","description":"All-in-one compressor/merger/minifier middleware for connect/express","category":["Middleware","Parsers / Generators","Cache","Connect","Express"],"keywords":["minifier","minify","compressor","resource manager","uglify"],"homepage":"https://github.com/mekwall/node-resmin","repository":{"type":"git","url":"git://github.com/mekwall/node-resmin.git"},"engines":{"node":">= 0.4.x"},"main":"index","dependencies":{"uglify-js":">= 1.0.1","csso":">= 1.2.9","mime":">= 1.2.2","gzip-js":">= 0.3.1","gowiththeflow":">= 1.0.0"},"_npmUser":{"name":"mekwall","email":"marcus.ekwall@gmail.com"},"_id":"resmin@0.1.2-1","devDependencies":{},"optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.0-2","_nodeVersion":"v0.6.8","_defaultsLoaded":true,"dist":{"shasum":"d36bbb270b96298afe8c850c57a25275a46365e4","tarball":"https://registry.npmjs.org/resmin/-/resmin-0.1.2-1.tgz","integrity":"sha512-7PqBqzMG1hRK2gmENeT7w+GEntlRA1R+wGzQuoOgKOLIV9tvS7suTZ2Z6OYRdHU3gQat0T1szY/Ky648vpMrxg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCap6qiheViJQkZ27ICWjngRAgOTctBtM8j5dgw/O4WvwIgOrYEzw9zBBKcDiHoG77ZfV0aqivu/t7zLXhtMH16yN4="}]},"readme":"# resmin\n\t\nAll-in-one minifier/merger/compiler/compressor middleware for connect/express.\n\n## Installation\n\n```bash\n$ npm install resmin\n```\n\n## Dependencies\n\nResmin depends on the following libraries:\n\n- [uglify-js](https://github.com/mishoo/UglifyJS)\n- [uglifycss](https://github.com/fmarcia/UglifyCSS)\n- [gzip-js](https://github.com/beatgammit/gzip-js)\n- [mime](https://github.com/bentomas/node-mime)\n\n## Supported\n\nResmin has integrated support for the the following libraries:\n\n- [stylus](http://learnboost.github.com/stylus/)\n- [less](https://github.com/cloudhead/less.js)\n\n## Basic usage\n\nResmin is built to be dead simple to use and implement.\n\n###Example configuration:\n\n```javascript\nvar resminConfig = {\n    gzip: true,\n    merge: true,\n    minify: true,\n    js: {\n        \"all\": [\n            \"//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js\",\n            \"//ajax.googleapis.com/ajax/libs/jqueryui/1.8.14/jquery-ui.min.js\",\n            \"/js/foo.js\",\n            \"/js/bar.js\",\n            \"/js/baz.js\"\n        ]\n    },\n    css: {\n        \"all\": [\n            \"//fonts.googleapis.com/css?family=Inconsolata:regular&v1\",\n            \"/css/foo.css\",\n            \"/css/bar.css\",\n            \"/css/baz.css\"\n        ]\n    }\n};\n```\n    \nInstantiate resmin and add the middleware and dynamic helper to connect/express.\n    \n    var resmin = require('resmin');\n\tapp.use(resmin.middleware(express, __dirname+'/public/', resminConfig));\n    app.dynamicHelpers(resmin.dynamicHelper);\n\nThe resmin variable is now accessible through your template engine of choice.\n\n###Example when using jade/haml:\n\n```yaml\n- each url in resmin.css.all\n  link(rel='stylesheet', href=url)\n- each url in resmin.js.all\n  script(src=url)\n```\n\n###Example when using ejs:\n\n```html\n<% for (url in resmin.css.all) { %>\n    <link rel=\"stylesheet\" href=\"<%= resmin.css.all[url] %>\">\n<% } %>\n<% for (url in resmin.js.all) { %>\n    <script src=\"<%= resmin.js.all[url] %>\"></script>\n<% } %>\n```\n\n###Example when using less:\n\nJust add your .less files either to the css group. They will be  \nautomatically parsed, compiled, merged and compressed according to your settings.\n\n```javascript\nvar resminConfig = {\n    ...\n    css: {\n        \"/css/foo.less\",\n        \"/css/bar.less\",\n        \"/css/baz.less\"\n    }\n}\n```\n\n###Example when using stylus:\n\nJust add your .less files either to the css group. They will be\nautomatically parsed, compiled, merged and compressed according to your settings.\n\n```javascript\nvar resminConfig = {\n    ...\n    css: {\n        \"/css/foo.styl\",\n        \"/css/bar.styl\",\n        \"/css/baz.styl\"\n    },\n\tstylus: function(style) {\n\t\t// Add your own stylus settings\n\t\treturn style;\n\t}\n}\n```\n\n## License\n\nCopyright (c) 2011 Marcus Ekwall, http://writeless.se/\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n      \n## Additional credits\n\nCredits and thanks to [tomgallacher](https://github.com/tomgallacher) for \n[gzippo](https://github.com/tomgallacher/gzippo) and [bengourley](https://github.com/bengourley) \nfor [minj](https://github.com/bengourley/minj) which resmin is loosely based upon.\n","maintainers":[{"name":"mekwall","email":"marcus.ekwall@gmail.com"}]},"0.1.2-2":{"name":"resmin","version":"0.1.2-2","author":{"name":"Marcus Ekwall","email":"marcus.ekwall@gmail.com"},"maintainer":"Marcus Ekwall","description":"All-in-one compressor/merger/minifier middleware for connect/express","category":["Middleware","Parsers / Generators","Cache","Connect","Express"],"keywords":["minifier","minify","compressor","resource manager","uglify"],"homepage":"https://github.com/mekwall/node-resmin","repository":{"type":"git","url":"git://github.com/mekwall/node-resmin.git"},"engines":{"node":">= 0.4.x"},"main":"index","dependencies":{"uglify-js":">= 1.0.1","csso":">= 1.2.9","mime":">= 1.2.2","gzip-js":">= 0.3.1","gowiththeflow":">= 1.0.0"},"_npmUser":{"name":"mekwall","email":"marcus.ekwall@gmail.com"},"_id":"resmin@0.1.2-2","devDependencies":{},"optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.0-2","_nodeVersion":"v0.6.8","_defaultsLoaded":true,"dist":{"shasum":"1b9bf0a6d772ff086378f3a07ba434f2a56cff9d","tarball":"https://registry.npmjs.org/resmin/-/resmin-0.1.2-2.tgz","integrity":"sha512-tCL46AomP+4+J47ChTFry/UWlRMCI8bwqkz04HWUduh5Iqx5SusOpB+1XwcmEFi79YXbdrZOVqk52WVtD8oGLA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCIhCJg1X36lJZMQcsvuF/iPEyiq5eFvw3jjv+yAcFIdwIhAIgC4PeDpGr8b9cYpXhdWwrgxbMPcn2wByDUP98sGDBD"}]},"readme":"# resmin\n\t\nAll-in-one minifier/merger/compiler/compressor middleware for connect/express.\n\n## Installation\n\n```bash\n$ npm install resmin\n```\n\n## Dependencies\n\nResmin depends on the following libraries:\n\n- [uglify-js](https://github.com/mishoo/UglifyJS)\n- [uglifycss](https://github.com/fmarcia/UglifyCSS)\n- [gzip-js](https://github.com/beatgammit/gzip-js)\n- [mime](https://github.com/bentomas/node-mime)\n\n## Supported\n\nResmin has integrated support for the the following libraries:\n\n- [stylus](http://learnboost.github.com/stylus/)\n- [less](https://github.com/cloudhead/less.js)\n\n## Basic usage\n\nResmin is built to be dead simple to use and implement.\n\n###Example configuration:\n\n```javascript\nvar resminConfig = {\n    gzip: true,\n    merge: true,\n    minify: true,\n    js: {\n        \"all\": [\n            \"//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js\",\n            \"//ajax.googleapis.com/ajax/libs/jqueryui/1.8.14/jquery-ui.min.js\",\n            \"/js/foo.js\",\n            \"/js/bar.js\",\n            \"/js/baz.js\"\n        ]\n    },\n    css: {\n        \"all\": [\n            \"//fonts.googleapis.com/css?family=Inconsolata:regular&v1\",\n            \"/css/foo.css\",\n            \"/css/bar.css\",\n            \"/css/baz.css\"\n        ]\n    }\n};\n```\n    \nInstantiate resmin and add the middleware and dynamic helper to connect/express.\n    \n    var resmin = require('resmin');\n\tapp.use(resmin.middleware(express, __dirname+'/public/', resminConfig));\n    app.dynamicHelpers(resmin.dynamicHelper);\n\nThe resmin variable is now accessible through your template engine of choice.\n\n###Example when using jade/haml:\n\n```yaml\n- each url in resmin.css.all\n  link(rel='stylesheet', href=url)\n- each url in resmin.js.all\n  script(src=url)\n```\n\n###Example when using ejs:\n\n```html\n<% for (url in resmin.css.all) { %>\n    <link rel=\"stylesheet\" href=\"<%= resmin.css.all[url] %>\">\n<% } %>\n<% for (url in resmin.js.all) { %>\n    <script src=\"<%= resmin.js.all[url] %>\"></script>\n<% } %>\n```\n\n###Example when using less:\n\nJust add your .less files either to the css group. They will be  \nautomatically parsed, compiled, merged and compressed according to your settings.\n\n```javascript\nvar resminConfig = {\n    ...\n    css: {\n        \"/css/foo.less\",\n        \"/css/bar.less\",\n        \"/css/baz.less\"\n    }\n}\n```\n\n###Example when using stylus:\n\nJust add your .less files either to the css group. They will be\nautomatically parsed, compiled, merged and compressed according to your settings.\n\n```javascript\nvar resminConfig = {\n    ...\n    css: {\n        \"/css/foo.styl\",\n        \"/css/bar.styl\",\n        \"/css/baz.styl\"\n    },\n\tstylus: function(style) {\n\t\t// Add your own stylus settings\n\t\treturn style;\n\t}\n}\n```\n\n## License\n\nCopyright (c) 2011 Marcus Ekwall, http://writeless.se/\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n      \n## Additional credits\n\nCredits and thanks to [tomgallacher](https://github.com/tomgallacher) for \n[gzippo](https://github.com/tomgallacher/gzippo) and [bengourley](https://github.com/bengourley) \nfor [minj](https://github.com/bengourley/minj) which resmin is loosely based upon.\n","maintainers":[{"name":"mekwall","email":"marcus.ekwall@gmail.com"}]},"0.1.3":{"name":"resmin","version":"0.1.3","author":{"name":"Marcus Ekwall","email":"marcus.ekwall@gmail.com"},"maintainer":"Marcus Ekwall","description":"All-in-one compressor/merger/minifier middleware for connect/express","category":["Middleware","Parsers / Generators","Cache","Connect","Express"],"keywords":["minifier","minify","compressor","resource manager","uglify"],"homepage":"https://github.com/mekwall/node-resmin","repository":{"type":"git","url":"git://github.com/mekwall/node-resmin.git"},"engines":{"node":">= 0.4.x"},"main":"index","dependencies":{"uglify-js":">= 1.0.1","csso":">= 1.2.9","mime":">= 1.2.2","gzip-js":">= 0.3.1","gowiththeflow":">= 1.0.0"},"_npmUser":{"name":"mekwall","email":"marcus.ekwall@gmail.com"},"_id":"resmin@0.1.3","devDependencies":{},"optionalDependencies":{},"_engineSupported":true,"_npmVersion":"1.1.1","_nodeVersion":"v0.6.8","_defaultsLoaded":true,"dist":{"shasum":"49c97f80123939b267b142f6f717166dc811f4ca","tarball":"https://registry.npmjs.org/resmin/-/resmin-0.1.3.tgz","integrity":"sha512-qa2gPkEhZmUlQ1R3NqbJH3M/d2O2CcRArmrsIQsBUf7HdXtCi4A9d0a2GZ6XfAQaeJ5KtO8A3ArDxnKF6vD4HA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC6Nrmb/aB71P/JjZlfLuE5ueMlq5wJZ/5+Gi7ebWeLSQIgaTHQ19Thq2nAgyE++g54jSfB/BH7PC0HcqcFrMvh2v4="}]},"readme":"# resmin\n\t\nAll-in-one minifier/merger/compiler/compressor middleware for connect/express.\n\n## Installation\n\n```bash\n$ npm install resmin\n```\n\n## Dependencies\n\nResmin depends on the following libraries:\n\n- [uglify-js](https://github.com/mishoo/UglifyJS)\n- [uglifycss](https://github.com/fmarcia/UglifyCSS)\n- [gzip-js](https://github.com/beatgammit/gzip-js)\n- [mime](https://github.com/bentomas/node-mime)\n\n## Supported\n\nResmin has integrated support for the the following libraries:\n\n- [stylus](http://learnboost.github.com/stylus/)\n- [less](https://github.com/cloudhead/less.js)\n\n## Basic usage\n\nResmin is built to be dead simple to use and implement.\n\n###Example configuration:\n\n```javascript\nvar resminConfig = {\n    gzip: true,\n    merge: true,\n    minify: true,\n    js: {\n        \"all\": [\n            \"//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js\",\n            \"//ajax.googleapis.com/ajax/libs/jqueryui/1.8.14/jquery-ui.min.js\",\n            \"/js/foo.js\",\n            \"/js/bar.js\",\n            \"/js/baz.js\"\n        ]\n    },\n    css: {\n        \"all\": [\n            \"//fonts.googleapis.com/css?family=Inconsolata:regular&v1\",\n            \"/css/foo.css\",\n            \"/css/bar.css\",\n            \"/css/baz.css\"\n        ]\n    }\n};\n```\n    \nInstantiate resmin and add the middleware and dynamic helper to connect/express.\n    \n    var resmin = require('resmin');\n\tapp.use(resmin.middleware(express, __dirname+'/public/', resminConfig));\n    app.dynamicHelpers(resmin.dynamicHelper);\n\nThe resmin variable is now accessible through your template engine of choice.\n\n###Example when using jade/haml:\n\n```yaml\n- each url in resmin.css.all\n  link(rel='stylesheet', href=url)\n- each url in resmin.js.all\n  script(src=url)\n```\n\n###Example when using ejs:\n\n```html\n<% for (url in resmin.css.all) { %>\n    <link rel=\"stylesheet\" href=\"<%= resmin.css.all[url] %>\">\n<% } %>\n<% for (url in resmin.js.all) { %>\n    <script src=\"<%= resmin.js.all[url] %>\"></script>\n<% } %>\n```\n\n###Example when using less:\n\nJust add your .less files either to the css group. They will be  \nautomatically parsed, compiled, merged and compressed according to your settings.\n\n```javascript\nvar resminConfig = {\n    ...\n    css: {\n        \"/css/foo.less\",\n        \"/css/bar.less\",\n        \"/css/baz.less\"\n    }\n}\n```\n\n###Example when using stylus:\n\nJust add your .less files either to the css group. They will be\nautomatically parsed, compiled, merged and compressed according to your settings.\n\n```javascript\nvar resminConfig = {\n    ...\n    css: {\n        \"/css/foo.styl\",\n        \"/css/bar.styl\",\n        \"/css/baz.styl\"\n    },\n\tstylus: function(style) {\n\t\t// Add your own stylus settings\n\t\treturn style;\n\t}\n}\n```\n\n## License\n\nCopyright (c) 2011 Marcus Ekwall, http://writeless.se/\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n\"Software\"), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND\nNONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE\nLIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION\nOF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\nWITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n      \n## Additional credits\n\nCredits and thanks to [tomgallacher](https://github.com/tomgallacher) for \n[gzippo](https://github.com/tomgallacher/gzippo) and [bengourley](https://github.com/bengourley) \nfor [minj](https://github.com/bengourley/minj) which resmin is loosely based upon.\n","maintainers":[{"name":"mekwall","email":"marcus.ekwall@gmail.com"}]}},"maintainers":[{"name":"mekwall","email":"marcus.ekwall@gmail.com"}],"time":{"modified":"2022-06-26T11:51:14.251Z","created":"2011-07-04T20:33:00.114Z","0.0.2":"2011-07-04T20:33:00.745Z","0.0.3":"2011-07-06T20:31:52.461Z","0.0.4":"2011-07-13T08:02:58.501Z","0.0.5":"2011-07-14T23:02:04.383Z","0.0.5-1":"2011-07-14T23:55:56.850Z","0.0.5-2":"2011-08-29T07:25:53.724Z","0.0.6-1":"2011-09-12T21:19:01.544Z","0.0.6-2":"2011-09-19T21:36:32.513Z","0.1.0":"2011-09-25T12:51:26.922Z","0.1.1":"2012-01-23T09:17:20.787Z","0.1.2-1":"2012-01-30T15:22:27.458Z","0.1.1-2":"2012-01-23T09:31:22.117Z","0.1.2":"2012-01-30T15:09:24.111Z","0.1.2-2":"2012-02-08T13:24:01.901Z","0.1.3":"2012-02-15T09:17:39.537Z"},"author":{"name":"Marcus Ekwall","email":"marcus.ekwall@gmail.com"},"repository":{"type":"git","url":"git://github.com/mekwall/node-resmin.git"}}