# expand-hash

> Recursively expands property keys with dot-notation into objects.

Latest version **1.0.1** (published 2018-05-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install expand-hash
pnpm add expand-hash
yarn add expand-hash
bun add expand-hash
```

## Health

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

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2018-05-15 |
| First published | 2014-03-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=4 |
| Dependencies | 0 |
| Unpacked size | 6.1 KB |
| Known vulnerabilities | 1 |
| Install scripts | no |
| GitHub stars | 24 |
| Author | Brian Woodward |
| Maintainers | doowb |
| Keywords | config values, dot notation, expand, hash, keys, object, string, values |

## Links

- npm: https://www.npmjs.com/package/expand-hash
- Repository: https://github.com/doowb/expand-hash
- Issues: https://github.com/doowb/expand-hash/issues
- npm.io page: https://npm.io/package/expand-hash

## Recent versions

- 1.0.1 (latest) — 2018-05-15
- 1.0.0 — 2018-05-14
- 0.2.2 — 2015-08-27
- 0.2.1 — 2014-04-10
- 0.1.1 — 2014-03-23
- 0.1.0 — 2014-03-22

## README

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

> Recursively expands property keys with dot-notation into objects.

Please consider following this project's author, [Brian Woodward](https://github.com/doowb), and consider starring the project to show your :heart: and support.

## Install

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

```sh
$ npm install --save expand-hash
```

## Usage

```js
const expand = require('expand-hash');
const obj = {
  'foo.bar.bar': 'some value',
  'foo.qux': 'another value',
  fez: true
};

console.log(expand(obj));
// {
//   foo: { bar: { bar: 'some value' }, qux: 'another value' },
//   fez: true
// }
```

## About

<details>
<summary><strong>Contributing</strong></summary>

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

</details>

<details>
<summary><strong>Running Tests</strong></summary>

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

</details>

<details>
<summary><strong>Building docs</strong></summary>

_(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
```

</details>

### Related projects

* [expand-object](https://www.npmjs.com/package/expand-object): Expand a string into a JavaScript object using a simple notation. Use the CLI or… [more](https://github.com/jonschlinkert/expand-object) | [homepage](https://github.com/jonschlinkert/expand-object "Expand a string into a JavaScript object using a simple notation. Use the CLI or as a node.js lib.")
* [stringify-keys](https://www.npmjs.com/package/stringify-keys): Build an array of key paths from an object. | [homepage](https://github.com/doowb/stringify-keys "Build an array of key paths from an object.")

### Contributors

| **Commits** | **Contributor** |
| --- | --- |
| 19 | [doowb](https://github.com/doowb) |
| 8  | [jonschlinkert](https://github.com/jonschlinkert) |
| 1  | [cconrad](https://github.com/cconrad) |

### Author

**Brian Woodward**

* [LinkedIn Profile](https://linkedin.com/in/woodwardbrian)
* [GitHub Profile](https://github.com/doowb)
* [Twitter Profile](https://twitter.com/doowb)

### License

Copyright © 2018, [Brian Woodward](https://github.com/doowb).
Released under the [MIT License](LICENSE).

***

_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on May 15, 2018._

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