node-minifyNPM ↗NPM ↗ (opens in a new tab)
GitHubGitHub (opens in a new tab)
  • Introduction
  • Getting Started
  • Options
  • CLI
  • Compressors
    • Babel Minify
    • Clean CSS
    • Crass
    • Cssnano
    • Csso
    • Gcc
    • HTML Minifier
    • Jsonminify
    • Sqwish
    • Terser
    • Uglify Es
    • Uglify JS
    • Yui
  • Introduction
    • Features
    • License
  • Getting Started
  • Options
  • CLI
  • NPM ↗ (opens in a new tab)
  • Compressors
    • Babel Minify
    • Clean CSS
    • Crass
    • Cssnano
    • Csso
    • Gcc
    • HTML Minifier
    • Jsonminify
    • Sqwish
    • Terser
    • Uglify Es
    • Uglify JS
    • Yui
Introduction
node-minify

A very light minifier Node.js module.

Features

It allow you to compress JavaScript, CSS and HTML files.

JavaScript:

  • babel-minify
  • Google Closure Compiler
  • terser
  • uglify-js
  • uglify-es
  • YUI Compressor

CSS:

  • clean-css
  • crass
  • cssnano
  • CSSO
  • sqwish
  • YUI Compressor

HTML:

  • html-minifier

JSON:

  • jsonminify

Command Line Interface:

  • CLI

CSS benchmark: http://goalsmashers.github.io/css-minification-benchmark/

I recommend to execute it at boot time for production use.

License

MIT (opens in a new tab)

Last updated on December 5, 2022
Getting Started