# edit-nested-object

> Edit a object with indexes like "name.first" etc.

Latest version **1.2.2** (published 2021-11-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install edit-nested-object
pnpm add edit-nested-object
yarn add edit-nested-object
bun add edit-nested-object
```

## Health

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

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

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.2 |
| Published | 2021-11-28 |
| First published | 2021-11-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Shisui |
| Maintainers | shisui |
| Keywords | edit, object |

## Links

- npm: https://www.npmjs.com/package/edit-nested-object
- npm.io page: https://npm.io/package/edit-nested-object

## Alternatives

- [ext-list](https://npm.io/package/ext-list.md) — 6.3M weekly downloads
- [@lexical/selection](https://npm.io/package/@lexical/selection.md) — 3.8M weekly downloads
- [@lexical/text](https://npm.io/package/@lexical/text.md) — 3.6M weekly downloads
- [@lexical/clipboard](https://npm.io/package/@lexical/clipboard.md) — 3.0M weekly downloads
- [@tiptap/extension-mention](https://npm.io/package/@tiptap/extension-mention.md) — 3.0M weekly downloads

## Recent versions

- 1.2.2 (latest) — 2021-11-28
- 1.2.1 — 2021-11-28
- 1.2.0 — 2021-11-28
- 1.1.0 — 2021-11-28
- 1.0.1 — 2021-11-28
- 1.0.0 — 2021-11-12

## README

# Installations
```
npm i edit-nested-object
```

# What ?
With this module you can edit nested object with keys like "name.first" etc

# How ?
```js
const editObject = require('edit-nested-object');

// import editObject from "./" // for typescript

const ob = {
    name: {
        first: "Shisui",
        last: "Uchiha",
    }
}

console.log(editObject(ob,"name.first","Itachi")); // output => { name: { first: 'Itachi', last: 'Uchiha' } }
```

# Supports
For support or issues or queries contace me on my [discord server](https://discord.gg/XYnMTQNTFh), If you find any bug create a issue [here](https://github.com/KartikeSingh/edit-object/issues).

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