collapse-white-space
Replace multiple white-space characters with a single space
Last updated 8 months ago by wooorm .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install collapse-white-space 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.6                                ...           latest (8 months ago)

7 Versions

  • 1.0.6                                ...           8 months ago
  • 1.0.5                                ...           a year ago
  • 1.0.4                                ...           2 years ago
  • 1.0.3                                ...           3 years ago
  • 1.0.2                                ...           4 years ago
  • 1.0.1                                ...           4 years ago
  • 1.0.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 5,264
This Week 10,971
This Month 134,478
Last Day 5,707
Last Week 35,436
Last Month 134,349
Dependencies (0)
None
Dev Dependencies (8)

Copyright 2014 - 2016 © taobao.org |