A collection of helper functions for working with strings
npm install @wessberg/stringutil> A collection of helper functions for working with strings
This library is a simple collection of helper functions for working with strings.
- Various helpers for changing and checking casing
- Helpers for changing and checking quoting
- Description
- Features
- Table of Contents
- Install
- NPM
- Yarn
- Usage
- Contributing
- Maintainers
- Backers
- Patreon
- License
```
$ npm install @wessberg/stringutil
``
$ yarn add @wessberg/stringutil
`typescript``
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]
Do you want to contribute? Awesome! Please follow these recommendations.
| |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Frederik Wessberg
Twitter: @FredWessberg
Github: @wessberg
_Lead Developer_ |
Become a backer and get your name, avatar, and Twitter handle listed here.
MIT © Frederik Wessberg (@FredWessberg) (Website)