Gobblefunk
Rename all the variables in a JavaScript file with a Markov chain based on silly words from Dr. Seuss, Lewis Caroll, and Roald Dahl books. Works within appropriate variable scopes. Detects and preserves camelCase/TitleCase/snake_case whenever possible.
Installation
Install for programmatic usage:
npm install gobblefunk
Install for command line usage:
npm install -g gobblefunk
Usage
var gobblefunk = fs = ; var js = fs; fs;
// my-script.js { return a * b;} // gobblefunked.js { return fizzlenut * mazurka;}
Command line usage
gobblefunk my-script.js > gobblefunked.js
Or pipe it:
cat my-script.js | gobblefunk > gobblefunked.js
Options
There are no options.