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

@wessberg/stringutil

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wessberg/stringutil

A class for performing simple operations on strings.

  • 1.0.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
59K
increased by28.62%
Maintainers
1
Weekly downloads
 
Created
Source

StringUtil NPM version

A class for performing simple operations on strings.

Installation

Simply do: npm install @wessberg/stringutil.

Usage

import {StringUtil} from "@wessberg/stringutil";
const stringUtil = new StringUtil();
stringUtil.camelCase("my-string"); // returns 'myString'
stringUtil.camelCase("my string"); // returns 'myString'
stringUtil.camelCase("MY_STRING"); // returns 'myString'
stringUtil.camelCase("my-complex_string HAS a_SPACE"); // returns 'myComplexStringHasASpace'
stringUtil.allIndexesOf(/_/g, "my string has underscores _here_"); // returns [26, 31]

Changelog:

v1.0.1:

  • Added documentation.

v1.0.0:

  • First release.

Keywords

FAQs

Package last updated on 10 Jul 2017

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