@lee-treehouse/tiny-npm-library
v2.0.0
Published
Removes all spaces from a string
Maintainers
Readme
@lee-treehouse/tiny-npm-library
https://www.npmjs.com/package/@lee-treehouse/tiny-npm-library
based on https://www.freecodecamp.org/news/how-to-make-a-beautiful-tiny-npm-package-and-publish-it-2881d4307f78/
Removes all spaces from a string.
Install
$ npm install @lee-treehouse/tiny-npm-libraryUsage
const tiny = require("@lee-treehouse/tiny-npm-library");
tiny("So much space!");
//=> "Somuchspace!"
tiny(1337);
//=> Uncaught TypeError: Tiny wants a string!
// at tiny (<anonymous>:2:41)
// at <anonymous>:1:1