Package Exports
- @wessberg/stringutil
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@wessberg/stringutil) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
A collection of helper functions for working with strings
Description
This library is a simple collection of helper functions for working with strings.
Features
- Various helpers for changing and checking casing
- Helpers for changing and checking quoting
Table of Contents
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
Frederik Wessberg Twitter: @FredWessberg Github: @wessberg Lead Developer |
Backers
Patreon
Become a backer and get your name, avatar, and Twitter handle listed here.
License
MIT © Frederik Wessberg (@FredWessberg) (Website)