string-minify
Simple string (file-content) minifier. This helper removes all extra whitespaces, tabs, newlines and trims the string. Please, do not blame me for this one-line module 😉
Install
$ npm install --save string-minify
Usage
const minifier = ; const testString = `Hello world!I am a string! `;const idealString = 'Hello world! I am a string!'; console; // => true
Related
- grunt-file-minify - Grunt plugin for simple file minification
License
MIT © Sergey Lysenko