node-minify
Javascript / CSS minifier based on Babel-minify / YUI Compressor / Google Closure Compiler / UglifyJS2 / Sqwish / Clean-css / CSSO
Last updated 6 years ago by srod .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install node-minify 
SYNC missed versions from official npm registry.

node-minify

A very light minifier Node.js module.




Features

It allow you to compress JavaScript, CSS and HTML files.

JavaScript:

CSS:

HTML:

Command Line Interface:

  • CLI :tada: new in version 3

Installation

npm install node-minify # OR yarn add node-minify

Quick Start

var compressor = require('node-minify');

// Using Google Closure Compiler
compressor.minify({
  compressor: 'gcc',
  input: 'foo.js',
  output: 'bar.js',
  callback: function(err, min) {}
});

// Using UglifyJS with wildcards
compressor.minify({
  compressor: 'uglifyjs',
  input: './**/*.js',
  output: 'bar.js',
  callback: function(err, min) {}
});

// With Promise
var promise = compressor.minify({
  compressor: 'uglifyjs',
  input: './**/*.js',
  output: 'bar.js'
});

promise.then(function(min) {});

More examples

Documentation

Visit https://node-minify.2clics.net for full documentation

Windows support

Since v0.5.0, a windows support is available for the no-compress option and uglify-js (thanks to pieces029 and benpusherhq)

License

MIT

Current Tags

  • 2.0.0-beta.2                                ...           beta (8 years ago)
  • 3.6.0                                ...           latest (6 years ago)
  • 4.0.0-beta.6                                ...           next (6 years ago)

92 Versions

  • 4.0.0-beta.6                                ...           6 years ago
  • 3.6.0                                ...           6 years ago
  • 4.0.0-beta.5                                ...           6 years ago
  • 3.5.1                                ...           6 years ago
  • 4.0.0-beta.4                                ...           6 years ago
  • 3.5.0                                ...           6 years ago
  • 3.4.0                                ...           6 years ago
  • 4.0.0-beta.3                                ...           6 years ago
  • 4.0.0-beta.2                                ...           6 years ago
  • 4.0.0-beta.1                                ...           6 years ago
  • 4.0.0-beta.0                                ...           6 years ago
  • 3.3.0                                ...           6 years ago
  • 3.2.1                                ...           6 years ago
  • 3.2.0                                ...           6 years ago
  • 3.1.2                                ...           6 years ago
  • 3.1.1                                ...           6 years ago
  • 3.1.0                                ...           6 years ago
  • 3.0.1                                ...           6 years ago
  • 3.0.0                                ...           6 years ago
  • 3.0.0-beta.1                                ...           7 years ago
  • 2.4.2                                ...           7 years ago
  • 2.4.1                                ...           7 years ago
  • 2.4.0                                ...           7 years ago
  • 2.3.1                                ...           7 years ago
  • 2.3.0                                ...           7 years ago
  • 2.2.0                                ...           7 years ago
  • 2.1.1                                ...           7 years ago
  • 2.1.0                                ...           7 years ago
  • 2.0.5                                ...           8 years ago
  • 2.0.4                                ...           8 years ago
  • 2.0.3                                ...           8 years ago
  • 2.0.2                                ...           8 years ago
  • 2.0.0                                ...           8 years ago
  • 2.0.0-beta.2                                ...           8 years ago
  • 1.3.9                                ...           8 years ago
  • 1.3.8                                ...           8 years ago
  • 2.0.0-beta.1                                ...           8 years ago
  • 2.0.0-beta.0                                ...           9 years ago
  • 1.3.7                                ...           9 years ago
  • 1.3.6                                ...           9 years ago
  • 1.3.5                                ...           9 years ago
  • 1.3.4                                ...           9 years ago
  • 1.3.3                                ...           9 years ago
  • 1.3.2                                ...           9 years ago
  • 1.3.1                                ...           9 years ago
  • 1.3.0                                ...           9 years ago
  • 1.2.1                                ...           9 years ago
  • 1.2.0                                ...           9 years ago
  • 1.1.0                                ...           10 years ago
  • 1.0.2                                ...           10 years ago
  • 1.0.1                                ...           10 years ago
  • 1.0.0                                ...           10 years ago
  • 0.13.1                                ...           10 years ago
  • 0.12.1                                ...           10 years ago
  • 0.11.1                                ...           10 years ago
  • 0.10.5                                ...           10 years ago
  • 0.10.4                                ...           10 years ago
  • 0.10.3                                ...           11 years ago
  • 0.10.2                                ...           11 years ago
  • 0.10.1                                ...           11 years ago
  • 0.9.4                                ...           11 years ago
  • 0.9.3                                ...           11 years ago
  • 0.9.2                                ...           11 years ago
  • 0.9.1                                ...           11 years ago
  • 0.8.2                                ...           11 years ago
  • 0.8.1                                ...           11 years ago
  • 0.7.5                                ...           11 years ago
  • 0.7.4                                ...           11 years ago
  • 0.7.3                                ...           12 years ago
  • 0.7.2                                ...           12 years ago
  • 0.7.1                                ...           12 years ago
  • 0.6.1                                ...           12 years ago
  • 0.6.0                                ...           12 years ago
  • 0.5.0                                ...           12 years ago
  • 0.4.2                                ...           12 years ago
  • 0.4.1                                ...           12 years ago
  • 0.4.0                                ...           12 years ago
  • 0.3.10                                ...           12 years ago
  • 0.3.9                                ...           13 years ago
  • 0.3.8                                ...           13 years ago
  • 0.3.7                                ...           13 years ago
  • 0.3.6                                ...           13 years ago
  • 0.3.5                                ...           13 years ago
  • 0.3.4                                ...           13 years ago
  • 0.3.3                                ...           13 years ago
  • 0.3.2                                ...           13 years ago
  • 0.3.1                                ...           13 years ago
  • 0.3.0                                ...           13 years ago
  • 0.2.1                                ...           13 years ago
  • 0.2.0                                ...           13 years ago
  • 0.1.1                                ...           13 years ago
  • 0.1.0                                ...           13 years ago
Maintainers (1)
Downloads
Total 1
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (20)
Dev Dependencies (9)
Dependents (2)

© 2010 - cnpmjs.org x YWFE | Home | YWFE