string-minify

1.0.1 • Public • Published

string-minify Build Status

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 = require('string-minify');
 
const testString = `Hello world!
I    am   a string!    `;
const idealString = 'Hello world! I am a string!';
 
console.log(minifier(string) === idealString); // => true

Related

License

MIT © Sergey Lysenko

Package Sidebar

Install

npm i string-minify

Weekly Downloads

327

Version

1.0.1

License

MIT

Unpacked Size

2.88 kB

Total Files

4

Last publish

Collaborators

  • soulwish