@pedroeldiablo/tiny

Removes all spaces from a string

Usage no npm install needed!

<script type="module">
  import pedroeldiabloTiny from 'https://cdn.skypack.dev/@pedroeldiablo/tiny';
</script>

README

tiny

A tiny npm module

npm (scoped) npm bundle size (scoped)

Removes all spaces from a string.

Install

$ npm install @pedroeldiablo/tiny

Usage

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

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

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