View on GitHub

tiny

The tiniest NPM module

@metagame/tiny

npm (scoped)

Removes all spaces from a string.

Install

$ npm install @metagame/tiny

Usage

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

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

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

CI

travis-ci