@seannorton/tiny

Removes all spaces from a string

Usage no npm install needed!

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

README

npm npm bundle size

Removes all spaces from a string

Install

$ npm install @seannorton/tiny 

Usage

const tiny = require('@seannorton/tiny');

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

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