Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Adding NPM

  • Loading branch information...
commit 44c1be35e934e2c42864bc6f6f7849f1d2edd68e 1 parent 158dd19
@srod authored
Showing with 27 additions and 7 deletions.
  1. +8 −7 Readme.md
  2. +1 −0  lib/node-minify.js
  3. +18 −0 package.json
View
15 Readme.md
@@ -1,22 +1,23 @@
# Node-minify
- A very light minifier script.
+ A very light minifier NodeJS module.
+
It allow you to compress javascript and css files.
I recommend to execute it at boot time for production use.
## Installation
- $ npm install node-minify
+ npm install node-minify
## Quick Start
- $ var compressor = require('node-minify').minify;
- $ new compressor({
- $ fileIn: 'public/js/base.js',
- $ fileOut: 'public/js/base-min.js'
- $ });
+ var compressor = require('node-minify').minify;
+ new compressor({
+ fileIn: 'public/js/base.js',
+ fileOut: 'public/js/base-min.js'
+ });
## Warning
View
1  lib/node-minify.js
@@ -24,4 +24,5 @@ minify.prototype.compress = function() {
});
};
+exports.version = '0.1.0';
exports.minify = minify;
View
18 package.json
@@ -0,0 +1,18 @@
+{
+ "name": "node-minify",
+ "version": "0.1.0",
+ "description": "Javascript / CSS minifier based on YUI Compressor",
+ "homepage": "https://github.com/srod/node-minify",
+ "author": {
+ "name": "Rodolphe Stoclin",
+ "email": "rodolphe@2clics.net",
+ "url": "http://2clics.net"
+ },
+
+ "main": "node-minify",
+
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/srod/node-minify.git"
+ }
+}
Please sign in to comment.
Something went wrong with that request. Please try again.