no-whitespace

1.0.0 • Public • Published

no-whitespace Build Status

Remove absolutely all whitespace from a string.

Install

$ npm install --save no-whitespace

Usage

const noWhitespace = require('no-whitespace');
 
noWhitespace('\n\r\t unicorns & rainbows! amaze! \n\r\t');
//=> 'unicorns&rainbows!amaze!'

API

noWhitespace(input, [options])

Returns a string with all whitespace characters removed.

input

Required
Type: string

The string you want to remove all whitespace characters from.

Related

  • selective-whitespace Condense all whitespace in a string, with options to preserve specific whitespace characters.

License

MIT © Michael Wuergler

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    3

Package Sidebar

Install

npm i no-whitespace

Weekly Downloads

3

Version

1.0.0

License

MIT

Last publish

Collaborators

  • radiovisual