# deep-rename-keys

> Recursively rename the keys in an object.

Latest version **0.2.1** (published 2017-04-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install deep-rename-keys
pnpm add deep-rename-keys
yarn add deep-rename-keys
bun add deep-rename-keys
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.1 |
| Published | 2017-04-03 |
| First published | 2015-01-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 35 |
| Author | Jon Schlinkert |
| Maintainers | doowb, jonschlinkert |
| Keywords | keys, nested, object, properties, props, recurse, recursively, rename |

## Links

- npm: https://www.npmjs.com/package/deep-rename-keys
- Repository: https://github.com/jonschlinkert/deep-rename-keys
- Issues: https://github.com/jonschlinkert/deep-rename-keys/issues
- npm.io page: https://npm.io/package/deep-rename-keys

## Dependencies (2)

- [kind-of](https://npm.io/package/kind-of.md) ^3.0.2
- [rename-keys](https://npm.io/package/rename-keys.md) ^1.1.2

## Recent versions

- 0.2.1 (latest) — 2017-04-03
- 0.2.0 — 2016-05-03
- 0.1.0 — 2015-01-20

## README

# deep-rename-keys [![NPM version](https://img.shields.io/npm/v/deep-rename-keys.svg?style=flat)](https://www.npmjs.com/package/deep-rename-keys) [![NPM monthly downloads](https://img.shields.io/npm/dm/deep-rename-keys.svg?style=flat)](https://npmjs.org/package/deep-rename-keys)  [![NPM total downloads](https://img.shields.io/npm/dt/deep-rename-keys.svg?style=flat)](https://npmjs.org/package/deep-rename-keys) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/deep-rename-keys.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/deep-rename-keys)

> Recursively rename the keys in an object.

## Install

Install with [npm](https://www.npmjs.com/):

```sh
$ npm install --save deep-rename-keys
```

## Usage

```js
var rename = require('deep-rename-keys');

var obj = rename({a: {a: {a: 'b'}}}, function(key) {
  if (key === 'a') return 'zzz';
  return key;
});
//=> {zzz: {zzz: {zzz: 'b'}}}
```

## About

### Related projects

* [isobject](https://www.npmjs.com/package/isobject): Returns true if the value is an object and not an array or null. | [homepage](https://github.com/jonschlinkert/isobject "Returns true if the value is an object and not an array or null.")
* [kind-of](https://www.npmjs.com/package/kind-of): Get the native type of a value. | [homepage](https://github.com/jonschlinkert/kind-of "Get the native type of a value.")
* [rename-keys](https://www.npmjs.com/package/rename-keys): Modify the names of the own enumerable properties (keys) of an object. | [homepage](https://github.com/jonschlinkert/rename-keys "Modify the names of the own enumerable properties (keys) of an object.")

### Contributing

Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).

### Building docs

_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_

To generate the readme, run the following command:

```sh
$ npm install -g verbose/verb#dev verb-generate-readme && verb
```

### Running tests

Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:

```sh
$ npm install && npm test
```

### Author

**Jon Schlinkert**

* [github/jonschlinkert](https://github.com/jonschlinkert)
* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)

### License

Copyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).
Released under the [MIT License](LICENSE).

***

_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.4.3, on April 03, 2017._

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