# camel-case

> Transform into a string with the separator denoted by the next word capitalized

Latest version **5.0.0** (published 2023-09-30) · MIT license · 0 weekly downloads

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

## Install

```sh
npm install camel-case
pnpm add camel-case
yarn add camel-case
bun add camel-case
```

## Health

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

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 5.0.0 |
| Published | 2023-09-30 |
| First published | 2014-03-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/camel-case) |
| Module format | ESM |
| Dependencies | 1 |
| Unpacked size | 3.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2404 |
| Author | Blake Embrey |
| Maintainers | blakeembrey |
| Keywords | camel, case, camelcase, camel-case, convert, transform, identifier |

## Links

- npm: https://www.npmjs.com/package/camel-case
- Repository: https://github.com/blakeembrey/change-case
- Homepage: https://github.com/blakeembrey/change-case/tree/master/packages/camel-case#readme
- Issues: https://github.com/blakeembrey/change-case/issues
- npm.io page: https://npm.io/package/camel-case

## Dependencies (1)

- [no-case](https://npm.io/package/no-case.md) ^4.0.0

## 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

- 5.0.0 (latest) — 2023-09-30
- 4.1.2 — 2020-12-02
- 4.1.1 — 2019-12-19
- 4.1.0 — 2019-12-06
- 4.0.1 — 2019-12-03
- 4.0.0 — 2019-12-01
- 3.0.0 — 2016-06-12
- 2.1.0 — 2016-06-12
- 2.0.0 — 2016-06-11
- 1.2.2 — 2015-12-16
- 1.2.1 — 2015-12-16
- 1.2.0 — 2015-10-21
- 1.1.2 — 2015-05-11
- 1.1.1 — 2015-01-12
- 1.1.0 — 2015-01-12
- … 6 more at https://npm.io/package/camel-case/versions

## README

# Camel Case

> Transform into a string with the separator denoted by the next word capitalized.

## Installation

```
npm install camel-case --save
```

## Usage

```js
import { camelCase } from "camel-case";

camelCase("string"); //=> "string"
camelCase("dot.case"); //=> "dotCase"
camelCase("PascalCase"); //=> "pascalCase"
camelCase("version 1.2.10"); //=> "version_1_2_10"
```

The function also accepts [`options`](https://github.com/blakeembrey/change-case#options).

### Merge Numbers

If you'd like to remove the behavior prefixing `_` before numbers, you can use `camelCaseTransformMerge`:

```js
import { camelCaseTransformMerge } from "camel-case";

camelCase("version 12", { transform: camelCaseTransformMerge }); //=> "version12"
```

## License

MIT

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