A zero-dependency CSS minifier and beautifier that compresses CSS for production or formats it for readability. Version 1.0.7 is the latest stable release. The package offers both CLI and API usage, with size reduction statistics and comment removal. Unlike CSSNano or Clean-CSS, it has no dependencies and provides a simple, straightforward API. Release cadence is low, with occasional updates. Key differentiators: zero dependencies, built-in beautify mode, and size stats.
npm install devkits-css-minifierNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates minify and beautify functions with size stats.
Use require() instead of import. Or use dynamic import() if needed, but note that named exports may not be available.
Use const { minify, beautify } = require('devkits-css-minifier');Install globally: npm install -g devkits-css-minifier
Switch to CommonJS require: const { minify } = require('devkits-css-minifier');Use require() or use a bundler that handles CJS<->ESM interop.
Run npm install devkits-css-minifier (local) or npm install -g devkits-css-minifier (global).
No dependency data recorded yet.