Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wessberg/stringutil
A collection of helper functions for working with strings that I frequently use
https://github.com/wessberg/stringutil
ascii capitalize dash-case dashcase kebabcase pascalcase string util
Last synced: 3 days ago
JSON representation
A collection of helper functions for working with strings that I frequently use
- Host: GitHub
- URL: https://github.com/wessberg/stringutil
- Owner: wessberg
- License: mit
- Created: 2017-05-24T11:53:18.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-10-15T19:01:01.000Z (about 5 years ago)
- Last Synced: 2024-12-01T08:54:47.488Z (22 days ago)
- Topics: ascii, capitalize, dash-case, dashcase, kebabcase, pascalcase, string, util
- Language: TypeScript
- Homepage:
- Size: 44.9 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
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
- [Description](#description)
- [Features](#features)
- [Table of Contents](#table-of-contents)
- [Install](#install)
- [NPM](#npm)
- [Yarn](#yarn)
- [Usage](#usage)
- [Contributing](#contributing)
- [Maintainers](#maintainers)
- [Backers](#backers)
- [Patreon](#patreon)
- [License](#license)## Install
### NPM
```
$ npm install @wessberg/stringutil
```### Yarn
```
$ yarn add @wessberg/stringutil
```## Usage
```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]
```## Contributing
Do you want to contribute? Awesome! Please follow [these recommendations](./CONTRIBUTING.md).
## Maintainers
| |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Frederik Wessberg](mailto:[email protected])
Twitter: [@FredWessberg](https://twitter.com/FredWessberg)
Github: [@wessberg](https://github.com/wessberg)
_Lead Developer_ |## Backers
### Patreon
[Become a backer](https://www.patreon.com/bePatron?u=11315442) and get your name, avatar, and Twitter handle listed here.
## License
MIT © [Frederik Wessberg](mailto:[email protected]) ([@FredWessberg](https://twitter.com/FredWessberg)) ([Website](https://github.com/wessberg))