rittenhop-dev/versions/5.94.2/node_modules/condense-whitespace
2024-09-23 19:40:12 -04:00
..
index.d.ts first commit 2024-09-23 19:40:12 -04:00
index.js first commit 2024-09-23 19:40:12 -04:00
license first commit 2024-09-23 19:40:12 -04:00
package.json first commit 2024-09-23 19:40:12 -04:00
readme.md first commit 2024-09-23 19:40:12 -04:00

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