/tiny

Tiny npm module

Primary LanguageJavaScriptMIT LicenseMIT

@r3dnag/tiny

Tiny npm module

version npm bundle size (minified)

Removes all spaces from a string.

Install

$ npm install @r3dnag/tiny

Usage

const tiny = require("@r3dnag/tiny");

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

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