UNPKG

@dan-sogbey/whitespaceremover

Version:

A short function to remove white spaces in a string

28 lines (19 loc) 1.07 kB
# @whitespaceremover ![npm (scoped)](https://img.shields.io/npm/v/@dan-sogbey/whitespaceremover) [![GitHub stars](https://img.shields.io/github/stars/Daniel-Sogbey/whitespaceremover)](https://github.com/Daniel-Sogbey/whitespaceremover/stargazers) [![GitHub license](https://img.shields.io/github/license/Daniel-Sogbey/whitespaceremover)](https://github.com/Daniel-Sogbey/whitespaceremover) [![GitHub forks](https://img.shields.io/github/forks/Daniel-Sogbey/whitespaceremover)](https://github.com/Daniel-Sogbey/whitespaceremover/network) [![GitHub issues](https://img.shields.io/github/issues/Daniel-Sogbey/whitespaceremover)](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 ```