nijm

1.4.1 • Public • Published

Non-invasive JavaScript minifier

nijm is a very simple JavaScript minifier, similar to Crockford's JSMin, with support for ES2015 template strings.

Usage

Import it:

var nijm = require('nijm');

And then:

minSrc = nijm(src);

By default nijm keeps some line feeds to make debugging easier. To avoid this and uglify your code, pass true as the second argument:

uglySrc = nijm(src,true);

It also has an executable!

nijm input.js > output.js

Readme

Keywords

none

Package Sidebar

Install

npm i nijm

Weekly Downloads

3

Version

1.4.1

License

Apache-2.0

Last publish

Collaborators

  • manvalls