Express middleware that auto-minifies JavaScript files on request, serving minified versions with caching. Version 0.0.2 is the latest and only release, with no active development or updates. Supports multiple minifiers including Google Closure Compiler, YUI Compressor, UglifyJS, and a no-compress mode. Designed for older Express/Connect setups, with no maintenance or security guarantees.
npm install autominifyNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Sets up Express server with autominify middleware for JavaScript minification on the fly.
Use a maintained alternative like uglify-js middleware or a build tool (webpack, gulp) for minification.
For Express 4+, use app.use('/js', autominify(...)) or upgrade to alternative middleware.Manually clear cache if source files change, or use a build tool for production.
Ensure java is installed and 'closure-compiler' jar is in PATH, or use 'uglifyjs' which is bundled.
Set environment variable or remove middleware conditionally for development.
Run 'npm install autominify' and verify node_modules contains it.
Use 'var autominify = require("autominify");' instead of ES6 import.Install Java and closure-compiler.jar, or use 'uglifyjs' as compiler string: autominify(path, 'uglifyjs').