# @rocketstation/change-case

> it provides helpers to convert strings to kebab, snake lower & upper, camel lower & upper cases

Latest version **2.0.0** (published 2018-12-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install @rocketstation/change-case
pnpm add @rocketstation/change-case
yarn add @rocketstation/change-case
bun add @rocketstation/change-case
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2018-12-25 |
| First published | 2018-03-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 3.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Rocket Station |
| Maintainers | oleksiibilous, oleksiipysanko |
| Keywords | change case, camel case, kebab case, pascal case, snake case |

## Links

- npm: https://www.npmjs.com/package/@rocketstation/change-case
- Repository: https://github.com/rocketstation/change-case
- Homepage: https://github.com/rocketstation/change-case#readme
- Issues: https://github.com/rocketstation/change-case/issues
- npm.io page: https://npm.io/package/@rocketstation/change-case

## Dependencies (4)

- [just-camel-case](https://npm.io/package/just-camel-case.md) 4
- [just-kebab-case](https://npm.io/package/just-kebab-case.md) 1
- [just-snake-case](https://npm.io/package/just-snake-case.md) 1
- [just-pascal-case](https://npm.io/package/just-pascal-case.md) 1

## Alternatives

- [@mce/gif](https://npm.io/package/@mce/gif.md) — 2.6K weekly downloads
- [cleanse](https://npm.io/package/cleanse.md) — 173 weekly downloads
- [str](https://npm.io/package/str.md) — 127 weekly downloads
- [naming](https://npm.io/package/naming.md) — 95 weekly downloads
- [tap-telco-api](https://npm.io/package/tap-telco-api.md) — 19 weekly downloads

## Recent versions

- 2.0.0 (latest) — 2018-12-25
- 1.2.0 — 2018-12-19
- 1.1.0 — 2018-12-19
- 1.0.5 — 2018-03-29
- 1.0.4 — 2018-03-29
- 1.0.3 — 2018-03-29
- 1.0.2 — 2018-03-29
- 1.0.1 — 2018-03-26
- 1.0.0 — 2018-03-21

## README

# Change Case

Change Case is based on [just](https://github.com/angus-c/just). It provides helpers to convert strings to kebab, snake lower & upper, camel lower & upper cases

## Installation

```
npm i @rocketstation/change-case
```

## Usage

```javascript
import * as changeCase from '@rocketstation/change-case'

console.log(changeCase.c('foo bar', ['foo', 'bar'], 'foo', 'bar')) // fooBarFooBarFooBar
console.log(changeCase.p('foo bar', ['foo', 'bar'], 'foo', 'bar')) // FooBarFooBarFooBar
console.log(changeCase.sl('foo bar', ['foo', 'bar'], 'foo', 'bar')) // foo_bar_foo_bar_foo_bar
console.log(changeCase.su('foo bar', ['foo', 'bar'], 'foo', 'bar')) // FOO_BAR_FOO_BAR_FOO_BAR
console.log(changeCase.k('foo bar', ['foo', 'bar'], 'foo', 'bar')) // foo-bar-foo-bar-foo-bar
```

## Motivation

We were tired of writing this code again and again

## License

Change Case is licensed under the [MIT License](http://opensource.org/licenses/MIT)

Created by [RocketStation](http://rstation.io)

---
_Source: https://npm.io/package/@rocketstation/change-case · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
