Module: string

Module: string

Methods

<inner> br2nl(string) → {String}

Transform
to new lines
Parameters:
Name Type Description
string String
Source:
Returns:
Type
String

<inner> format(string, args) → {String}

Format a string using %s
Parameters:
Name Type Argument Description
string String
args String <repeatable>
Source:
Returns:
Type
String

<inner> isEmpty(string) → {Boolean}

Test if a string is empty
Parameters:
Name Type Description
string String
Source:
Returns:
Type
Boolean

<inner> lcFirst(string) → {String}

Make a string's first character lowercase
Parameters:
Name Type Description
string String
Source:
Returns:
Type
String

<inner> nl2br(string) → {String}

Transform new lines (\r?\n) to br
Parameters:
Name Type Description
string String
Source:
Returns:
Type
String

<inner> normalize(string) → {String}

Normalize a string
Parameters:
Name Type Description
string String
Source:
Returns:
Type
String

<inner> slugify(string) → {String}

Slugify a string
Parameters:
Name Type Description
string String
Source:
Returns:
Type
String

<inner> stripTags(s, allowed) → {String}

Strip html tags from a string, trying to keep newlines consistent
Parameters:
Name Type Description
s String
allowed String list of allowed tags, separated by space
Source:
Returns:
Type
String

<inner> translit(string) → {String}

Transliterate a string
Parameters:
Name Type Description
string String
Source:
Returns:
Type
String

<inner> ucFirst(string) → {String}

Make a string's first character uppercase
Parameters:
Name Type Description
string String
Source:
Returns:
Type
String

<inner> vformat(string, args) → {String}

Format a string using %s
Parameters:
Name Type Description
string String
args Array.<string>
Source:
Returns:
Type
String

Module: string

Methods

<inner> br2nl(string) → {String}

Transform
to new lines
Parameters:
Name Type Description
string String
Source:
Returns:
Type
String

<inner> format(string, args) → {String}

Format a string using %s
Parameters:
Name Type Argument Description
string String
args String <repeatable>
Source:
Returns:
Type
String

<inner> isEmpty(string) → {Boolean}

Test if a string is empty
Parameters:
Name Type Description
string String
Source:
Returns:
Type
Boolean

<inner> lcFirst(string) → {String}

Make a string's first character lowercase
Parameters:
Name Type Description
string String
Source:
Returns:
Type
String

<inner> nl2br(string) → {String}

Transform new lines (\r?\n) to br
Parameters:
Name Type Description
string String
Source:
Returns:
Type
String

<inner> normalize(string) → {String}

Normalize a string
Parameters:
Name Type Description
string String
Source:
Returns:
Type
String

<inner> slugify(string) → {String}

Slugify a string
Parameters:
Name Type Description
string String
Source:
Returns:
Type
String

<inner> stripTags(s, allowed) → {String}

Strip html tags from a string, trying to keep newlines consistent
Parameters:
Name Type Description
s String
allowed String list of allowed tags, separated by space
Source:
Returns:
Type
String

<inner> translit(string) → {String}

Transliterate a string
Parameters:
Name Type Description
string String
Source:
Returns:
Type
String

<inner> ucFirst(string) → {String}

Make a string's first character uppercase
Parameters:
Name Type Description
string String
Source:
Returns:
Type
String

<inner> vformat(string, args) → {String}

Format a string using %s
Parameters:
Name Type Description
string String
args Array.<string>
Source:
Returns:
Type
String

Module: string

Methods

<inner> br2nl(string) → {String}

Transform
to new lines
Parameters:
Name Type Description
string String
Source:
Returns:
Type
String

<inner> format(string, args) → {String}

Format a string using %s
Parameters:
Name Type Argument Description
string String
args String <repeatable>
Source:
Returns:
Type
String

<inner> isEmpty(string) → {Boolean}

Test if a string is empty
Parameters:
Name Type Description
string String
Source:
Returns:
Type
Boolean

<inner> lcFirst(string) → {String}

Make a string's first character lowercase
Parameters:
Name Type Description
string String
Source:
Returns:
Type
String

<inner> nl2br(string) → {String}

Transform new lines (\r?\n) to br
Parameters:
Name Type Description
string String
Source:
Returns:
Type
String

<inner> normalize(string) → {String}

Normalize a string
Parameters:
Name Type Description
string String
Source:
Returns:
Type
String

<inner> slugify(string) → {String}

Slugify a string
Parameters:
Name Type Description
string String
Source:
Returns:
Type
String

<inner> stripTags(s, allowed) → {String}

Strip html tags from a string, trying to keep newlines consistent
Parameters:
Name Type Description
s String
allowed String list of allowed tags, separated by space
Source:
Returns:
Type
String

<inner> translit(string) → {String}

Transliterate a string
Parameters:
Name Type Description
string String
Source:
Returns:
Type
String

<inner> ucFirst(string) → {String}

Make a string's first character uppercase
Parameters:
Name Type Description
string String
Source:
Returns:
Type
String

<inner> vformat(string, args) → {String}

Format a string using %s
Parameters:
Name Type Description
string String
args Array.<string>
Source:
Returns:
Type
String