Compressors
Jsonminify

jsonminify

jsonminify can compress only JSON files.

https://github.com/fkei/JSON.minify (opens in a new tab)

Usage

const minify = require('@node-minify/core');
const jsonminify = require('@node-minify/jsonminify');
 
minify({
  compressor: jsonminify,
  input: 'foo.json',
  output: 'bar.json',
  callback: function(err, min) {}
});
Last updated on December 5, 2022