1.0.2 • Published 8 years ago
whitespace-remove v1.0.2
whitespace-remove
Strip all whitespace from the given string. This is different from
String.prototype.trim()
which only removes whitespaces from the beginning and
end of a string.
Installation
$ npm i --save whitespace-remove
Overview
var removeWhitespace = require('whitespace-remove');
removeWhitespace('foo\n bar\n');
// => 'foo\nbar\n'