@ariesclark/string
TypeScript icon, indicating that this package has built-in type declarations

0.3.1 • Public • Published
@ariesclark/string logo

Fast, efficient, and easy-to-use string extensions for TypeScript.

Packages

Installation

npm install @ariesclark/extensions
# Or directly, if you only need the string extension.
npm install @ariesclark/string

Documentation

lowercase (function)

Parameters:

  • value (T)

returns: Lowercase

uppercase (function)

Converts the string to uppercase, alias for value.toUpperCase().

Parameters:

  • value (T)

returns: Uppercase

capitalize (function)

Converts the first character of a string to uppercase.

Parameters:

  • value (T)

returns: Capitalize

uncapitalize (function)

Converts the first character of a string to lowercase.

Parameters:

  • value (T)

returns: Uncapitalize

pascalCase (function)

Parameters:

  • value (T)

returns: string

camelCase (function)

Parameters:

  • value (T)

returns: string

loremIpsum (function)

Parameters:

  • words (number) - The number of words to generate.

returns: string

loremIpsum(5); // "Lorem ipsum dolor sit amet"

snakeCase (function)

Parameters:

  • value (T)

returns: string

titleCase (function)

Parameters:

  • value (T)

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)

Package Sidebar

Install

npm i @ariesclark/string

Weekly Downloads

6

Version

0.3.1

License

MIT

Unpacked Size

10.7 kB

Total Files

24

Last publish

Collaborators

  • ariesclark