Class: FunTranslators

FunTranslators

Converts text strings into different formats.

new FunTranslators()

Source:

Methods


to(name, input)

Convert a string to a format based on it's name.
Parameters:
Name Type Description
name string The name of the translator.
input string The string to convert.
Source:
Returns:
The formatted string.
Type
string

toLeetSpeak(input)

Convert a string to Leet Speak (1337 5p34k).
Parameters:
Name Type Description
input string The string to convert.
Source:
Returns:
The formatted string.
Type
string

toMockingFont(input)

Convert a string to the SpongeBob mocking meme font (SpOngEBoB MoCKinG).
Parameters:
Name Type Description
input string The string to convert.
Source:
Returns:
The formatted string.
Type
string

toSmallCaps(input)

Convert string to small caps (Hᴇʟʟᴏ Wᴏʀʟᴅ!).
Parameters:
Name Type Description
input string The string to convert.
Source:
Returns:
The formatted string.
Type
string

toSuperScript(input)

Convert string to superscript characters (ᴴᵉˡˡᵒ ᵂᵒʳˡᵈᵎ).
Parameters:
Name Type Description
input string The string to convert.
Source:
Returns:
The formatted string.
Type
string