Global

Members

(constant) animateTextCypher

Description:
  • Animates the given text to be revealed from either left to right or right to left.
Source:
Animates the given text to be revealed from either left to right or right to left.

(constant) applyKey

Description:
  • Applies the given key onto the text
Source:
Applies the given key onto the text

(constant) generateKeyArray

Description:
  • Generates a key array for every letter of the given text with given number.
Source:
Generates a key array for every letter of the given text with given number.

(constant) isInLatinLowercaseRange

Description:
  • Checks if given code point is within Latin lowercase range The code point for 'a' is 97, until the code point for 'z' is 122.
Source:
Checks if given code point is within Latin lowercase range The code point for 'a' is 97, until the code point for 'z' is 122.

(constant) isInLatinUppercaseRange

Description:
  • Checks if given code point is within Latin uppercase range The code point for 'A' is 65, until the code point for 'Z' is 90.
Source:
Checks if given code point is within Latin uppercase range The code point for 'A' is 65, until the code point for 'Z' is 90.

(constant) isWithinLatinRange

Description:
  • Checks if given code point is within Latin range The code point for 'A' is 65, until the code point for 'z' is 122.
Source:
Checks if given code point is within Latin range The code point for 'A' is 65, until the code point for 'z' is 122.

(constant) makeKeyArray

Description:
  • Returns an array of the code points for the given key between 0 and 26
Source:
Returns an array of the code points for the given key between 0 and 26
Examples
// returns [0, 1, 2]
makeKeyArray('abc');
// returns [1, 4, 11, 11, 0, 18, 14]
makeKeyArray('Bellaso!!Äö@');

Methods

sleep(milliseconds) → {Promise.<unknown>}

Description:
  • Sleeps for the given amount of time.
Source:
Parameters:
Name Type Description
milliseconds number
Returns:
Type
Promise.<unknown>