npm

Don't miss out on this year's npm Pride t-shirt designs!Order your favorites here »

@wessberg/stringutil

1.0.18 • Public • Published

Downloads per month Dependencies NPM Version Contributors MIT License Support on Patreon

@wessberg/stringutil

A collection of helper functions for working with strings

Description

A collection of helper functions for working with strings.

Install

NPM

$ npm install @wessberg/stringutil

Yarn

$ yarn add @wessberg/stringutil

Usage

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

Contributing

Do you want to contribute? Awesome! Please follow these recommendations.

Maintainers

Backers 🏅

Become a backer and get your name, logo, and link to your site listed here.

License 📄

MIT © Frederik Wessberg

install

npm i @wessberg/stringutil

Downloadsweekly downloads

502

version

1.0.18

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability