uglifyjs-lite is a zero-dependency JavaScript minifier that provides a browser-compatible version of UglifyJS v1.3.5. Version 2018.8.15 targets Node.js >=4.0 and includes a live web demo. It differs from modern UglifyJS (e.g., terser) by sticking to the older UglifyJS API and supporting both CommonJS and browser usage. The package is unmaintained and likely deprecated in favor of terser or newer UglifyJS versions.
npm install uglifyjs-classicNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic minification using the old UglifyJS API.
Migrate to terser (npm install terser) and use import { minify } from 'terser';Use the correct API: var output = uglifyjs.minify(input); // returns string
Declare module in a .d.ts file: declare module 'uglifyjs-lite';
Pin exact version in package.json: "uglifyjs-lite": "2018.8.15"
Install with npm install uglifyjs-lite, and use require instead of import.
Use const uglifyjs = require('uglifyjs-lite'); then uglifyjs.minify(...).Use <script src="node_modules/uglifyjs-lite/index.js"></script> and access uglifyjs global.
No dependency data recorded yet.