- playstring = Removes all spaces from a string.
- titleCase = A string which need to be display as a title
- spaceCase = Function for deviding word with dash "-"
$ npm install playstring
const { playstring } = require("playstring");
playstring("Hello world space!");
// output => "Helloworldspace!"
playstring(1337);
//=> Uncaught TypeError: playstring wants a string!
// at playstring (<anonymous>:2:41)
// at <anonymous>:1:1
import { titleCase } from "playstring";
titleCase("aPropertyNameWhichNeedsToBeDisplayedAsATitle");
// output => "A Property Name Which Needs To Be Displayed As A Title"
import { spaceCase } from "playstring";
spaceCase("play string");
// output => "play-string"
spaceCase("playString");
// output => "play-string"