Skip to content
Simple string minifier
JavaScript
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.editorconfig
.gitignore
.travis.yml
LICENSE
README.md
index.js
package-lock.json
package.json
test.js

README.md

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

You can’t perform that action at this time.