A JavaScript minifier that prioritizes readability over aggressive compression, similar to Crockford's JSMin. Version 1.4.1 is the latest stable release with irregular updates. Supports ES2015 template strings by default and retains line feeds to ease debugging unless explicitly told to uglify. Differentiates from UglifyJS/Terser by minimal transformations, making output more human-readable at the cost of smaller size. Suitable for cases where you need basic whitespace removal without renaming variables or restructuring code.
npm install nijmNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Import nijm, minify a simple function, and compare default (readable) vs ugly mode.
Use Terser or UglifyJS if you need variable renaming or dead code elimination.
Call nijm(src, true) to strip all unnecessary line breaks.
Use require('nijm') instead.Use const nijm = require('nijm').default; or better, use CommonJS require.No dependency data recorded yet.