Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ariesclark/string

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ariesclark/string

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

  • 0.3.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
11
increased by1000%
Maintainers
1
Weekly downloads
 
Created
Source
@ariesclark/string logo

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

Packages

@ariesclark/extensions @ariesclark/array @ariesclark/number @ariesclark/object @ariesclark/string @ariesclark/time @ariesclark/function

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)

Keywords

FAQs

Package last updated on 21 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc