# camelize

> recursively transform key strings to camel-case

Latest version **1.0.1** (published 2022-10-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install camelize
pnpm add camelize
yarn add camelize
bun add camelize
```

## Health

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

Positive: has types package; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2022-10-12 |
| First published | 2013-03-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/camelize) |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 12.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 13 |
| Author | James Halliday |
| Maintainers | substack, ljharb |
| Keywords | camel-case, json, transform |

## Links

- npm: https://www.npmjs.com/package/camelize
- Repository: https://github.com/ljharb/camelize
- Issues: https://github.com/ljharb/camelize/issues
- Funding: https://github.com/sponsors/ljharb
- npm.io page: https://npm.io/package/camelize

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.0.1 (latest) — 2022-10-12
- 1.0.0 — 2014-07-07
- 0.2.0 — 2014-07-07
- 0.1.2 — 2013-12-18
- 0.1.1 — 2013-12-18
- 0.1.0 — 2013-07-01
- 0.0.0 — 2013-03-23

## README

# camelize <sup>[![Version Badge][npm-version-svg]][package-url]</sup>

[![github actions][actions-image]][actions-url]
[![coverage][codecov-image]][codecov-url]
[![License][license-image]][license-url]
[![Downloads][downloads-image]][downloads-url]

[![npm badge][npm-badge-png]][package-url]

recursively transform key strings to camel-case

# example

``` js
var camelize = require('camelize');
var obj = {
    fee_fie_foe: 'fum',
    beep_boop: [
        { 'abc.xyz': 'mno' },
        { 'foo-bar': 'baz' }
    ]
};
var res = camelize(obj);
console.log(JSON.stringify(res, null, 2));
```

output:

```
{
  "feeFieFoe": "fum",
  "beepBoop": [
    {
      "abcXyz": "mno"
    },
    {
      "fooBar": "baz"
    }
  ]
}
```

# methods

``` js
var camelize = require('camelize')
```

## camelize(obj)

Convert the key strings in `obj` to camel-case recursively.

# install

With [npm](https://npmjs.org) do:

```
npm install camelize
```

To use in the browser, use [browserify](http://browserify.org).

# license

MIT

[package-url]: https://npmjs.org/package/camelize
[npm-version-svg]: https://versionbadg.es/ljharb/camelize.svg
[deps-svg]: https://david-dm.org/ljharb/camelize.svg
[deps-url]: https://david-dm.org/ljharb/camelize
[dev-deps-svg]: https://david-dm.org/ljharb/camelize/dev-status.svg
[dev-deps-url]: https://david-dm.org/ljharb/camelize#info=devDependencies
[npm-badge-png]: https://nodei.co/npm/camelize.png?downloads=true&stars=true
[license-image]: https://img.shields.io/npm/l/camelize.svg
[license-url]: LICENSE
[downloads-image]: https://img.shields.io/npm/dm/camelize.svg
[downloads-url]: https://npm-stat.com/charts.html?package=camelize
[codecov-image]: https://codecov.io/gh/ljharb/camelize/branch/main/graphs/badge.svg
[codecov-url]: https://app.codecov.io/gh/ljharb/camelize/
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/ljharb/camelize
[actions-url]: https://github.com/ljharb/camelize/actions

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