string-minify

JSON →
library 1.0.1 ·javascript
verified Jun 4, 2026

string-minify is a minimal Node.js utility (v1.0.1) that removes extra whitespace, tabs, newlines, and trims strings. It's a single-function, zero-dependency module designed for simple string cleanup in Node.js >=8. Unlike full-fledged minifiers (e.g., UglifyJS, Terser), it only collapses whitespace and does not handle code syntax. Released under MIT, it is stable but not actively developed. Suitable for preprocessing text content.