Socket
Socket
Sign inDemoInstall

remove-whitespace

Package Overview
Dependencies
2
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

remove-whitespace

Strip all whitespace from a string


Version published
Maintainers
1
Created

Readme

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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc