Natively Pluggable Module

    remove-whitespace

    1.1.0 • Public • Published

    remove-whitespace

    Build Status Coverage Status Code Climate

    Strip all whitespace from the given string. This is different from [String.prototype.trim()][trim-url] which only removes white spaces from the beginning and end of a string.

    Installation

    $ npm i --save remove-whitespace

    Overview

    var removeWhitespace = require('remove-whitespace');
     
    removeWhitespace(' foo  bar  '); // => 'foobar'
    removeWhitespace('foo\n bar\n'); // => 'foo\nbar\n'

    License

    MIT © Yoshua Wuyts

    Install

    npm i remove-whitespace

    DownloadsWeekly Downloads

    1,072

    Version

    1.1.0

    License

    MIT

    Last publish

    Collaborators

    • javiercejudo