npm.io
2.0.1 • Published 4 years ago

@devniklesh/remove-spaces

Licence
MIT
Version
2.0.1
Deps
0
Size
2 kB
Vulns
0
Weekly
0

@devniklesh/remove-spaces

npm (scoped)

Removes all spaces from a string.

Install

$ npm install @devniklesh/remove-spaces

Usage

const removeSpaces = require("@devniklesh/remove-spaces");

removeSpaces("So much space!");
//=> "Somuchspace!"

removeSpaces(1337);
//=> Uncaught TypeError: Remove spaces package wants a string!
//    at tiny (<anonymous>:2:41)
//    at <anonymous>:1:1

Keywords