mirror of
https://github.com/nodejs/node.git
synced 2026-12-06 02:38:52 -05:00
ESLint 4.2.0 contains a fix for a bug that is blocking us from moving to the non-legacy stricter indentation linting. Update to 4.2.0 to remove the blocking issue. PR-URL: https://github.com/nodejs/node/pull/14155 Ref: https://github.com/eslint/eslint/issues/8882 Ref: https://github.com/eslint/eslint/pull/8885 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com>
collapse-white-space

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.