1.0.2 • Published 8 years ago

whitespace-remove v1.0.2

Weekly downloads
5
License
MIT
Repository
github
Last release
8 years ago

whitespace-remove

NPM version build status Test coverage Downloads

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'

License

MIT © Yoshua Wuyts