🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

remove-whitespace

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remove-whitespace

Strip all whitespace from a string

1.1.0
latest
Source
npm
Version published
Weekly downloads
610
15.97%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

strip

FAQs

Package last updated on 29 Dec 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts