Open-source IoT Platform - Device management, data collection, processing and visualization.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
Artem Halushko f8af340464 pulled with master 7 years ago
..
index.js pulled with master 7 years ago
license pulled with master 7 years ago
package.json pulled with master 7 years ago
readme.md pulled with master 7 years ago

readme.md

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