Global

Members

camelSplitter

Camelcase splitter.
Source:

separatorSplitter

Separator splitter.
Source:

Methods

alternateCase1(str) → {string}

Converts the characters of a string to alternate case.
Parameters:
Name Type Description
str string The input string.
Source:
Returns:
The string with characters converted to alternate case.
Type
string

alternateCase2(str) → {string}

Converts the characters of a string to alternate case.
Parameters:
Name Type Description
str string The input string.
Source:
Returns:
The string with characters converted to alternate case.
Type
string

camelCase(str) → {string}

Converts a string to camel case.
Parameters:
Name Type Description
str string The input string.
Source:
Returns:
The camel case version of the input string.
Type
string

constantCase(str) → {string}

Converts a string to constant case.
Parameters:
Name Type Description
str string The input string to convert.
Source:
Returns:
The converted string in constant case.
Type
string

dotCase(str) → {string}

Converts a string to dot case.
Parameters:
Name Type Description
str string The input string.
Source:
Returns:
The dot cased string.
Type
string

invertCase(str) → {string}

Inverts the case of each character in a given string.
Parameters:
Name Type Description
str string The input string.
Source:
Returns:
The inverted string.
Type
string

kebabCase(str) → {string}

Converts a string to kebab case.
Parameters:
Name Type Description
str string The input string.
Source:
Returns:
The kebab cased string.
Type
string

lowerCase(str) → {string}

Converts a string to lowercase.
Parameters:
Name Type Description
str string The string to convert.
Source:
Returns:
The converted lowercase string.
Type
string

noCase(string) → {String}

Remove any starting case from a `string`, like camel or snake, but keep spaces and punctuation that may be important otherwise.
Parameters:
Name Type Description
string String
Source:
Returns:
Type
String

pascalCase(str) → {string}

Converts a string to PascalCase.
Parameters:
Name Type Description
str string The input string.
Source:
Returns:
The PascalCase string.
Type
string

pascalSnakeCase(str) → {string}

Converts a string to Pascal Snake Case.
Parameters:
Name Type Description
str string The input string.
Source:
Returns:
The string converted to Pascal Snake Case.
Type
string

pathCase(str) → {string}

Converts a string to path case.
Parameters:
Name Type Description
str string The input string to be converted.
Source:
Returns:
The converted string in path case.
Type
string

reverseTitleCase(str) → {string}

Reverses the title case of a string.
Parameters:
Name Type Description
str string The input string.
Source:
Returns:
The reversed title case string.
Type
string

sentenceCase(str) → {string}

Converts a paragraph into sentence case.
Parameters:
Name Type Description
str string The input string to convert.
Source:
Returns:
The converted string in sentence case.
Type
string

snakeCase(str) → {string}

Converts a string to snake case.
Parameters:
Name Type Description
str string The input string to convert.
Source:
Returns:
The snake cased string.
Type
string

spongeCase(str) → {string}

Converts a string to sponge case.
Parameters:
Name Type Description
str string The input string.
Source:
Returns:
The string converted to sponge case.
Type
string

titleCase(str) → {string}

Converts a string to title case.
Parameters:
Name Type Description
str string The input string.
Source:
Returns:
The string converted to title case.
Type
string

toggleCase(str) → {string}

Converts the case of a string by toggling the case of each word.
Parameters:
Name Type Description
str string The input string.
Source:
Returns:
The modified string with toggled case.
Type
string

trainCase(str) → {string}

Converts a string to train case. Train case is a case where each word is capitalized and separated by a hyphen.
Parameters:
Name Type Description
str string The string to convert to train case.
Source:
Returns:
The string converted to train case.
Type
string

uncamelize(string) → {String}

Un-camelcase a `string`.
Parameters:
Name Type Description
string String
Source:
Returns:
Type
String

unseparate(string) → {String}

Un-separate a `string`.
Parameters:
Name Type Description
string String
Source:
Returns:
Type
String

upperCase(str) → {string}

Converts a string to uppercase.
Parameters:
Name Type Description
str string The input string.
Source:
Returns:
The uppercase string.
Type
string