/spongemockify

😜 😂 A Node.js package to "sponge-mock-ify" any English text

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

meme

spONgeMocKifY

Build Status Codecov Coverage npm version npm Downloads npm bundle size Package Quality

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.

Installation

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

Usage

As a CLI tool:

spongemockify <string>

As a package inside a Node.js project:

const sp = require('spongemockify/lib');
/* Code */
sp.spongemockify(str);

Acknowledgement

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.

Enjoy!

Tweet