You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.1 KiB
45 lines
1.1 KiB
2 years ago
|
# Change Case
|
||
|
|
||
|
[![NPM version][npm-image]][npm-url]
|
||
|
[![NPM downloads][downloads-image]][downloads-url]
|
||
|
[![Bundle size][bundlephobia-image]][bundlephobia-url]
|
||
|
|
||
|
> Transform a string between `camelCase`, `PascalCase`, `Capital Case`, `snake_case`, `param-case`, `CONSTANT_CASE` and others.
|
||
|
|
||
|
## Installation
|
||
|
|
||
|
```
|
||
|
npm install change-case --save
|
||
|
```
|
||
|
|
||
|
## Usage
|
||
|
|
||
|
```js
|
||
|
import {
|
||
|
camelCase,
|
||
|
capitalCase,
|
||
|
constantCase,
|
||
|
dotCase,
|
||
|
headerCase,
|
||
|
noCase,
|
||
|
paramCase,
|
||
|
pascalCase,
|
||
|
pathCase,
|
||
|
sentenceCase,
|
||
|
snakeCase,
|
||
|
} from "change-case";
|
||
|
```
|
||
|
|
||
|
Methods can also be installed [independently](https://github.com/blakeembrey/change-case). All functions also accept [`options`](https://github.com/blakeembrey/change-case#options) as the second argument.
|
||
|
|
||
|
## License
|
||
|
|
||
|
MIT
|
||
|
|
||
|
[npm-image]: https://img.shields.io/npm/v/change-case.svg?style=flat
|
||
|
[npm-url]: https://npmjs.org/package/change-case
|
||
|
[downloads-image]: https://img.shields.io/npm/dm/change-case.svg?style=flat
|
||
|
[downloads-url]: https://npmjs.org/package/change-case
|
||
|
[bundlephobia-image]: https://img.shields.io/bundlephobia/minzip/change-case.svg
|
||
|
[bundlephobia-url]: https://bundlephobia.com/result?p=change-case
|