# inner

> Get and set values in deeply nested objects.

Latest version **0.2.0** (published 2014-10-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install inner
pnpm add inner
yarn add inner
bun add inner
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.2.0 |
| Published | 2014-10-31 |
| First published | 2014-10-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Sorin Iclanzan |
| Maintainers | iclanzan |

## Links

- npm: https://www.npmjs.com/package/inner
- Repository: https://github.com/RealGeeks/inner
- Issues: https://github.com/RealGeeks/inner/issues
- npm.io page: https://npm.io/package/inner

## Recent versions

- 0.2.0 (latest) — 2014-10-31
- 0.1.1 — 2014-10-10
- 0.1.0 — 2014-10-09

## README

Inner
=====

Get and set values in deeply nested objects.

Installation
------------

```bash
npm install inner
```

Usage
-----

```js
var inner = require('inner');
var object = {
  user: {
    name: 'John',
    friends: ['Mike', 'Alex']
  }
};

inner.get(object, ['user', 'friends', '0']); // -> 'Mike'
inner.set(object, ['user', 'name'], 'Chris'); // object.user.name == 'Chris'
inner.has(object, ['user', 'friends', '1']); // -> true
```

Credits
-------

_Inner_ is just like [this library](https://github.com/cowboy/node-getobject), but with support for specifying nested properties as arrays instead of strings.

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