# nestify-anything

> Recreates an object from any `nested.props`. A simple and small integration.

Latest version **4.0.1** (published 2025-08-04) · MIT license · 0 weekly downloads

## Install

```sh
npm install nestify-anything
pnpm add nestify-anything
yarn add nestify-anything
bun add nestify-anything
```

## Health

**Score 45/100 (D)** — status: stable.

Positive: esm support; no vulnerabilities; high maintenance score.

Warnings: low downloads; no types.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 4.0.1 |
| Published | 2025-08-04 |
| First published | 2019-08-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM |
| Node | >=18 |
| Dependencies | 1 |
| Unpacked size | 6.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 12 |
| Author | Luca Ban - Mesqueeb |
| Maintainers | mesqueeb |
| Keywords | nestify, nest-objects, nestify-objects, nested, paths, nest-paths |

## Links

- npm: https://www.npmjs.com/package/nestify-anything
- Repository: https://github.com/mesqueeb/nestify-anything
- Homepage: https://github.com/mesqueeb/nestify-anything#readme
- Issues: https://github.com/mesqueeb/nestify-anything/issues
- Funding: https://github.com/sponsors/mesqueeb
- npm.io page: https://npm.io/package/nestify-anything

## Dependencies (1)

- [merge-anything](https://npm.io/package/merge-anything.md) ^6.0.6

## Alternatives

- [base64url](https://npm.io/package/base64url.md) — 6.1M weekly downloads
- [get-installed-path](https://npm.io/package/get-installed-path.md) — 502.9K weekly downloads
- [@uppy/url](https://npm.io/package/@uppy/url.md) — 185.8K weekly downloads
- [@d3fc/d3fc-shape](https://npm.io/package/@d3fc/d3fc-shape.md) — 16.2K weekly downloads
- [localizer](https://npm.io/package/localizer.md) — 226 weekly downloads

## Recent versions

- 4.0.1 (latest) — 2025-08-04
- 4.0.0 — 2025-08-04
- 3.0.3 — 2025-02-19
- 3.0.2 — 2024-06-05
- 3.0.1 — 2024-06-05
- 3.0.0 — 2024-06-01
- 2.0.5 — 2023-05-23
- 2.0.4 — 2023-05-07
- 2.0.3 — 2023-04-24
- 2.0.2 — 2022-01-26
- 2.0.1 — 2022-01-26
- 2.0.0 — 2022-01-25
- 1.0.5 — 2022-01-25
- 1.0.4 — 2022-01-25
- 1.0.3 — 2020-11-05
- … 5 more at https://npm.io/package/nestify-anything/versions

## README

# Nestify anything 🧅

<a href="https://www.npmjs.com/package/nestify-anything"><img src="https://img.shields.io/npm/v/nestify-anything.svg" alt="Total Downloads"></a>
<a href="https://www.npmjs.com/package/nestify-anything"><img src="https://img.shields.io/npm/dw/nestify-anything.svg" alt="Latest Stable Version"></a>

```
npm i nestify-anything
```

Recreates an object from any `nested.props`. A simple and small integration.

Can be used in combination with [flatten-anything 🏏](https://github.com/mesqueeb/flatten-anything), which does the exact opposite of this one! 😉

## Meet the family (more tiny utils with TS support)

- [is-what 🙉](https://github.com/mesqueeb/is-what)
- [is-where 🙈](https://github.com/mesqueeb/is-where)
- [merge-anything 🥡](https://github.com/mesqueeb/merge-anything)
- [check-anything 👁](https://github.com/mesqueeb/check-anything)
- [remove-anything ✂️](https://github.com/mesqueeb/remove-anything)
- [getorset-anything 🐊](https://github.com/mesqueeb/getorset-anything)
- [map-anything 🗺](https://github.com/mesqueeb/map-anything)
- [filter-anything ⚔️](https://github.com/mesqueeb/filter-anything)
- [copy-anything 🎭](https://github.com/mesqueeb/copy-anything)
- [case-anything 🐫](https://github.com/mesqueeb/case-anything)
- [flatten-anything 🏏](https://github.com/mesqueeb/flatten-anything)
- [nestify-anything 🧅](https://github.com/mesqueeb/nestify-anything)

## Usage

```js
import { nestifyObject } from 'nestify-anything'

const target = {
  'name': 'Ho-oh',
  'types.fire': true,
  'types.flying': true,
}

nestifyObject(target)
// returns {
//   name: 'Ho-oh',
//   types: { fire: true, flying: true }
// }
```

Currently the library only works with the dot character `'.'` as separator. If you need other characters like slash `'/'`, let me know in an issue!

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