# expand-keys

> expands object's keys with dots (like.this) to nested objects { like: this: {} }

Latest version **1.0.4** (published 2021-10-08) · ISC license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities; high maintenance score.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2021-10-08 |
| First published | 2017-12-08 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Maintainers | patrickleet |

## Links

- npm: https://www.npmjs.com/package/expand-keys
- Repository: https://github.com/patrickleet/expand-keys
- Homepage: https://github.com/patrickleet/expand-keys#readme
- Issues: https://github.com/patrickleet/expand-keys/issues
- npm.io page: https://npm.io/package/expand-keys

## Recent versions

- 1.0.4 (latest) — 2021-10-08
- 1.0.3 — 2021-10-08
- 1.0.2 — 2021-10-08
- 1.0.1 — 2021-10-08
- 1.0.0 — 2019-10-08
- 0.0.5 — 2018-09-28
- 0.0.4 — 2018-03-31
- 0.0.3 — 2018-03-31
- 0.0.2 — 2018-03-10
- 0.0.1 — 2018-03-10
- 0.0.0 — 2017-12-08
- 0.0.0-development — 2017-12-08

## README

# expand-keys
[![Release](https://github.com/patrickleet/expand-keys/actions/workflows/release.yml/badge.svg)](https://github.com/patrickleet/expand-keys/actions/workflows/release.yml)
[![codecov](https://codecov.io/gh/patrickleet/expand-keys/branch/master/graph/badge.svg)](https://codecov.io/gh/patrickleet/expand-keys)

```
describe('expandKeys', () => {
  it('expands keys', () => {
    let expected = {
      hello: {
        world: 1,
        galaxy: 2
      },
      three: {
        dots: {
          deep: {
            son: {
              wow: true
            }
          }
        }
      }
    }
    let expanded = expandKeys({
      'hello.world': 1,
      'hello.galaxy': 2,
      'three.dots.deep.son': { wow: true }
    })
    expect(expanded).toEqual(expected)
  })
})

```

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