@cjser/condense-whitespace
v3.0.0-cjser.2
Published
Remove leading, trailing, and repeated whitespace from a string
Maintainers
Readme
condense-whitespace
Remove leading, trailing, and repeated whitespace from a string
Install
$ npm install condense-whitespaceUsage
import condenseWhitespace from 'condense-whitespace';
condenseWhitespace(' foo bar baz ');
//=> 'foo bar baz'Related
trim-repeated- Trim a consecutively repeated substring:foo--bar---baz→foo-bar-baz
cjser
This package is a CommonJS-compatible build generated by cjser for projects that still need require() support. The source version matches the original npm package version, with a cjser prerelease suffix for this generated build.
Original repository: https://github.com/sindresorhus/condense-whitespace
