Files
Rich Trott 31f572c3ea tools: update to ESLint 4.3.0
PR-URL: https://github.com/nodejs/node/pull/14417
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Teddy Katz <teddy.katz@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: Refael Ackermann <refack@gmail.com>
2017-09-05 12:50:01 -04:00
..
2017-09-05 12:50:01 -04:00

collapse-white-space Build Status Coverage Status

Replace multiple white-space characters with a single space.

Installation

npm:

npm install collapse-white-space

Usage

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

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

API

collapse(value)

Replace multiple white-space characters in value with a single space.

License

MIT © Titus Wormer