New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

condense-whitespace

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

condense-whitespace

Remove leading, trailing, and repeated whitespace from a string

2.0.0
Source
npm
Version published
Weekly downloads
37K
-17.65%
Maintainers
1
Weekly downloads
 
Created
Source

condense-whitespace Build Status

Remove leading, trailing, and repeated whitespace from a string

Install

$ npm install condense-whitespace

Usage

const condenseWhitespace = require('condense-whitespace');

condenseWhitespace('  foo bar     baz ');
//=> 'foo bar baz'
  • trim-repeated - Trim a consecutively repeated substring: foo--bar---bazfoo-bar-baz

License

MIT © Sindre Sorhus

Keywords

whitespace

FAQs

Package last updated on 09 Apr 2019

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