# @soyhuce/bob.case-converter

> Convert kebabcase, snakecase and camelcase

Latest version **2.0.0** (published 2022-05-23) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @soyhuce/bob.case-converter
pnpm add @soyhuce/bob.case-converter
yarn add @soyhuce/bob.case-converter
bun add @soyhuce/bob.case-converter
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2022-05-23 |
| First published | 2022-05-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 10.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Soyhuce |
| Maintainers | adminsoyhuce, m4ss1v3s3r0t0n14, benoit.zuinghedau, nexoid |
| Keywords | case, converter, soyhuce, bob |

## Links

- npm: https://www.npmjs.com/package/@soyhuce/bob.case-converter
- npm.io page: https://npm.io/package/@soyhuce/bob.case-converter

## 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) — 2022-05-23
- 0.1.0 — 2022-05-20

## README

# @soyhuce/bob.capitalize

> Case converter function from [Bob library](../bob).

## Installation

```bash
pnpm add @soyhuce/bob.case-converter
```

## Usage

```ts
import caseConverter from '@soyhuce/bob.case-converter'

console.log(
    caseConverter.stringCaseConverter<string>(
        'helloWorld',
        Cases.CAMEL_CASE,
        Cases.KEBAB_CASE
    )
)
/*

 Output:

'hello-world'

*/

interface MyObject extends Record<string, unknown> {
    'my_property1': boolean
    'my_property2': string
    'my_property3': number
}

console.log(caseConverter.objectCaseConverter<MyObject>({
    'my_property1': false,
    'my_property2': 'hello world',
    'my_property3': 14000
}, Cases.SNAKE_CASE, Cases.CAMEL_CASE))
/*

Output:

{
  'myProperty1': false,
  'myProperty2': 'hello world'
  'myProperty3': 14000
}

*/
```

## License
MIT

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