utils

Methods

(inner) fillWith(char, lengthopt) → {String}

Source:

Return a word of specified char and length

Parameters:
Name Type Attributes Default Description
char String

Char to fill

length Number <optional>
1
Returns:
Type
String

(inner) fillWithPattern(pattern) → {String}

Source:

Return string filled with specified pattern

Parameters:
Name Type Description
pattern String

Filling pattern like "2X3N" is two space and three zero

Returns:
Type
String

(inner) wordPad(word, length, charopt) → {String}

Source:

Add char after the word if length is less than expected

Parameters:
Name Type Attributes Default Description
word String

Starting word

length Number

Expected length

char String <optional>
' '

Char to pad

Returns:
Type
String