Fast, efficient, and easy-to-use string extensions for TypeScript.
Packages
Installation
npm install @ariesclark/extensions
npm install @ariesclark/string
Documentation
lowercase
(function)
Parameters:
returns: Lowercase
uppercase
(function)
Converts the string to uppercase, alias for value.toUpperCase()
.
Parameters:
returns: Uppercase
capitalize
(function)
Converts the first character of a string to uppercase.
Parameters:
returns: Capitalize
uncapitalize
(function)
Converts the first character of a string to lowercase.
Parameters:
returns: Uncapitalize
pascalCase
(function)
Parameters:
returns: string
camelCase
(function)
Parameters:
returns: string
loremIpsum
(function)
Parameters:
- words (
number
) - The number of words to generate.
returns: string
loremIpsum(5);
snakeCase
(function)
Parameters:
returns: string
titleCase
(function)
Parameters:
returns: string
trim
(function)
Remove leading & trailing characters from string, default is any whitespace.
Parameters:
- value (
string
) - character (
string
)
returns: string
{ fromCharCode, fromCodePoint, raw }
(variable)