CLI

You can compress files using the command line.

Usage

node-minify --compressor uglifyjs --input 'input.js' --output 'output.js'
cli

Options

You can pass an option as a JSON string to the compressor.

node-minify --compressor uglifyjs --input 'input.js' --output 'output.js' --option '{"warnings": true, "mangle": false}'