mockingcase
mOcKiNgCaSe 
Convert a string to mOcKiNgCaSe.
Read more on wikipedia Studly caps.
Inspired by the meme Mocking Spongebob and http://dannypage.github.io/spongebob.html
Install
$ npm install mockingcase --save
Usage
const mOcKiNgCaSe = ;// es6 - import mOcKiNgCaSe from 'mockingcase';// ts - import * as mOcKiNgCaSe from 'mockingcase';// ts - import mOcKiNgCaSe = require('mockingcase'); ;//=> 'fOo-bAr' ;//=> 'aA' ;//=> 'aa'//=> 'aA'//=> 'Aa'//=> 'AA' ;//=> 'fOo_bAr' ;//=> 'fOo-bAr' ;//=> 'fOo bAr 42' ;//=> '42fOo!bAr' ;//=> 'fOo42!$ bAr' ;//=> '4FoO!$ B2Ar'API
mOcKiNgCaSe(input, [options]) ⇒ string
This function receives a string input and converts it to mOcKiNgCaSe.
Returns: string - string in mOcKiNgCaSe
| Param | Type | Default | Description |
|---|---|---|---|
| input | string |
string to be converted | |
| [options] | object |
{random: false} |
options for converting |
| options.random | boolean |
false |
using random for converting |