Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 651 Bytes

README.md

File metadata and controls

28 lines (19 loc) · 651 Bytes

@rhgavriel/val-or-meow

npm (scoped) npm bundle size (minified)

Sometimes turns val into meow.

Install

$ npm install @rhgavriel/val-or-meow

Usage

const valOrMeow = require("@rhgavriel/valOrMeow");

valOrMeow("wow much cat");
//=> "Mrrow"
//=> "wow much cat"

valOrMeow(1337);
//=> "Purr"

valOrMeow(() => console.log("why did you do this?"));
//=> "Meow"