node package manager

minify

Minify License Dependency Status Build Status NPM version

Minify - a minifier of js, css, html and img files. To use minify as middleware try Mollify.

Install

npm i minify --save

How to use?

const minify = require('minify');
 
minify('client.js', (error, data) => {
    if (error)
        return console.error(error.message);
    
    console.log(data);
});

License

MIT