1.0.2 • Published 7 years ago
drumpfify v1.0.2
drumpfify
A module for filtering data through a Drumpf-inspired logic.
Installing
npm install drumpfify
Usage:
var drumpfify = require('drumpfify')
// replace "Trump" with "Drumpf":
var fiction = "His real name is Trump."
var reality = drumpfify.name(fiction);
// generate a relatively Drumpf-sized variable
var average_hands = 100;
var small_hands = drumpfify.hands(average_hands);
// make a bigly statement
var normal = "This is a normal statement with real words.";
var horrifying = drumpfify.bigly(normal);
currently available methods
bigly(<number> OR <boolean> OR <string>)
- number: returns an absurdly bigger number.
- boolean: returns the opposite.
- string: returns a meaningless scramble of the argument.
huge(<number> OR <boolean> OR <string>)
- number: returns a much bigger number.
- boolean: returns the opposite.
- string: returns the argument completely capitalized.
hands(<number> OR <boolean> OR <string>)
- number: returns a much smaller number.
- boolean: returns null.
- string: returns a partial/fragmented copy of the argument.
taxes(<number> OR <boolean> OR <string>)
- number: returns 0.
- boolean: returns null.
- string: returns an empty string.
trust(<number> OR <boolean> OR <string>)
- number: returns the opposite.
- boolean: returns the opposite.
- string: returns the argument in retrograde.
name(<string>)
- string: returns "drumpf", "Drumpf" or "DRUMPF" in place of the respectively-cased "trump", "Trump" or "TRUMP".