A Node.js-based JavaScript minifier/beautifier providing an alternative to tools like UglifyJS, Closure Compiler, and YUI Compressor. Version 0.2.0 is the latest stable, released in 2011, with no active development. It supports minification and beautification of JavaScript code via a simple API or command-line interface. Key differentiator is its lightweight, single-dependency approach using 'uglify-js', but it lacks modern features and is largely superseded by ongoing projects.
npm install minifyjsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic minification and beautification using the callback-based API.
Replace with uglify-js, terser, or esbuild for modern features and security updates.
Always provide a callback function.
Specify level explicitly if you want less aggressive minification.
minifyjs.minify(code, { level: 2 }, function(err, result) { ... })npm install uglify-js