@shon/tiny

Removes all spaces from a string

Usage no npm install needed!

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

README

@shon/tiny

npm (scoped) npm bundle size (minified)

Removes all whitespace from string

Install

$ npm install @shon/tiny

Usage

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

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

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