Files
node/tools/node_modules/eslint/node_modules/collapse-white-space
cjihrig 7eaa813fcf tools: update ESLint to 7.0.0-alpha.0
Update ESLint to 7.0.0-alpha.0

PR-URL: https://github.com/nodejs/node/pull/31400
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
2020-03-11 16:42:36 +01:00
..
2019-06-11 15:59:17 +02:00
2019-06-11 15:59:17 +02:00

collapse-white-space

Build Coverage Downloads Size

Replace multiple whitespace characters with a single space.

Install

npm:

npm install collapse-white-space

Use

var collapse = require('collapse-white-space')

collapse('\tfoo \n\tbar  \t\r\nbaz') //=> ' foo bar baz'

API

collapse(value)

Replace multiple whitespace characters in value with a single space.

License

MIT © Titus Wormer