whitespace-remove
v1.0.2
Published
Strip all whitespace from a string
Downloads
78
Maintainers
Readme
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'