Nullifying Precipitation Machine

npm

Check out our latest tech talk, "JavaScript Supply Chain Security," presented by VP of Security, Adam Baldwin.Watch it here »

collapse-white-space

1.0.5 • Public • Published

collapse-white-space

Build Coverage Downloads Size

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

install

npm i collapse-white-space

Downloadsweekly downloads

1,301,580

version

1.0.5

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability