@alfsnd/tiny
Version:
Removes all spaces from a string
26 lines (18 loc) • 536 B
Markdown
[](https://github.com/Sandalf/tiny)
[](https://github.com/Sandalf/tiny)
# @alfsnd/tiny
Removes all spaces from a string
# Install
```shell
npm install @alfsnd/tiny
```
# Usage
```js
const tiny = require("@alfsnd/tiny");
tiny("So much space!");
//=> "Somuchspace!"
tiny(1337);
//=> Uncaught TypeError: Tiny wants a string!
// at tiny (<anonymous>:2:41)
// at <anonymous>:1:1
```