whitespace-remove

1.0.2 • Public • Published

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

Package Sidebar

Install

npm i whitespace-remove

Weekly Downloads

3

Version

1.0.2

License

MIT

Last publish

Collaborators

  • yoshuawuyts