ohctechv3/.svn/pristine/a2/a2a4dd4e72396d81ab15654b7b4c597208b2845c.svn-base

27 lines
433 B
Plaintext
Raw Normal View History

2024-10-28 15:03:36 +05:30
# tiny-case
Extremely minimal string casing utilities that mimic most of lodash's casing behavior, e.g.
numbers are considered seperate "words".
```sh
npm i tiny-case
```
## Usage
```js
import {
camelCase,
pascalCase,
snakeCase,
kebabCase,
titleCase,
sentenceCase,
words,
upperFirst,
} from 'tiny-case'
words('hi-there john') // ['hi', 'there', 'john']
words(' 1ApplePlease ') // ['1', 'Apple', 'Please']
```