This simple Node.js module takes a string as a CLI input and converts it into a mocking Spongebob meme style text.
It follows one simple rules: no more than three consecutive same-case (uppercase/lowercase) characters.
Package Manager | Scope of Installation | |
---|---|---|
Local | Global (CLI tool) | |
NPM | npm i spongemockify |
npm i -g spongemockify |
Yarn | yarn add spongemockify |
yarn global add spongemockify |
As a CLI tool:
spongemockify <string>
As a package inside a Node.js project:
const sp = require('spongemockify/lib');
/* Code */
sp.spongemockify(str);
Special thanks to my good buddy and a prominent JS junkie Shawon Ashraf who spent his precious time (on his birthday!) to kill some bugs and make the module usable as a CLI command.