A very light minifier Node.js module.
jsonminify
jsonminify
is a plugin for node-minify
It allow you to compress JSON files.
Installation
npm install @node-minify/core @node-minify/jsonminify
Usage
const minify = require('@node-minify/core');
const jsonminify = require('@node-minify/jsonminify');
minify({
compressor: jsonminify,
input: 'foo.js',
output: 'bar.js',
callback: function (err, min) {}
});
Documentation
Visit https://node-minify.2clics.net/compressors/jsonminify.html for full documentation