Filters

Prompt-Set. Filters

Source:

Built-in filters for Promptlets
Can be added manually by importing this file or automatically through certain functions in Promptlets

Methods

(static) autoTrim(val) → {string}

Source:

Whitespace trimming filter

Parameters:
Name Type Description
val string

Prompt answer to filter

Returns:

Filtered result

Type
string

(static) capsLock(val) → {string}

Source:

Caps lock filter: Sets all characters to uppercase

Parameters:
Name Type Description
val string

Prompt answer to filter

Returns:

Filtered result

Type
string

(static) lowerCase(val) → {string}

Source:

Lowercase filter: Sets all characters to lowercase

Parameters:
Name Type Description
val string

Prompt answer to filter

Returns:

Filtered result

Type
string

(static) singleSpace(val) → {string}

Source:

Double whitespace remover filter

Parameters:
Name Type Description
val string

Prompt answer to filter

Returns:

Filtered result

Type
string

(static) upperCase(val) → {string}

Source:

Uppercase filter: Sets all characters to uppercase

Parameters:
Name Type Description
val string

Prompt answer to filter

Returns:

Filtered result

Type
string