Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@dan-sogbey/whitespaceremover

Daniel-Sogbey21MIT2.0.6

A short function to remove white spaces in a string

whitespaceremover

readme

@whitespaceremover

npm (scoped) GitHub stars GitHub license GitHub forks GitHub 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