Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 609 Bytes

README.md

File metadata and controls

27 lines (19 loc) · 609 Bytes

tiny

The tiniest npm module.

npm (scoped) npm bundle size (minified)

Removes all spaces from a string.

Install

$ npm install @sarahsibert/tiny

Usage

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

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

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