@dan-sogbey/whitespaceremover
Version:
A short function to remove white spaces in a string
28 lines (19 loc) • 1.07 kB
Markdown
# @whitespaceremover

[](https://github.com/Daniel-Sogbey/whitespaceremover/stargazers)
[](https://github.com/Daniel-Sogbey/whitespaceremover)
[](https://github.com/Daniel-Sogbey/whitespaceremover/network)
[](https://github.com/Daniel-Sogbey/whitespaceremover/issues)
It's the simplest npm module
# INSTALL
`$ npm install @dan-sogbey/whitespaceremover`
# USAGE
`const whitespaceremover = require("@dan-sogbey/whitespaceremover");`
```
whitespaceremover("So much space!");
//=> "Somuchspace!"
whitespaceremover(1337);
//=> Uncaught TypeError: whitespaceremover wants a string!
// at whitespaceremover (<anonymous>:2:41)
// at <anonymous>:1:1
```