# read-nested-object

> Read a nested property of an object

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

## Install

```sh
npm install read-nested-object
pnpm add read-nested-object
yarn add read-nested-object
bun add read-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.0.1 |
| Published | 2021-11-28 |
| First published | 2021-11-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | shisui |

## Links

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

## Recent versions

- 1.0.1 (latest) — 2021-11-28
- 1.0.0 — 2021-11-28

## README

# Installations
```
npm i read-nested-object
```

# What ?
With this module you can read nested object with keys like "name.first", "hobby.real.0" etc

# How ?
```js
const readObject = require('read-nested-object');

// import readObject from "./" // for typescript

const ob = {
    name: {
        first: "Shisui",
        last: "Uchiha",
    },
    hobby: {
        real: ["sleeping", "wasting time"],
        fake: ["coding", "gaming"]
    }
}

console.log(readObject(ob,"name.first")); // output => Shisui
console.log(readObject(ob,"hobby.real.0")); // output => sleeping
```

# 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/read-nested-object/issues).

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