# get-object-path

> Return a value from given object path

Latest version **0.0.3** (published 2016-03-22) · BSD license · 0 weekly downloads

## Install

```sh
npm install get-object-path
pnpm add get-object-path
yarn add get-object-path
bun add get-object-path
```

## 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.0.3 |
| Published | 2016-03-22 |
| First published | 2014-02-01 |
| Weekly downloads | 0 |
| License | BSD |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 23 |
| Author | Azer Koçulu |
| Maintainers | hassoncs |
| Keywords | object, path |

## Links

- npm: https://www.npmjs.com/package/get-object-path
- Repository: https://github.com/azer/get-object-path
- Homepage: https://github.com/azer/get-object-path#readme
- Issues: https://github.com/azer/get-object-path/issues
- npm.io page: https://npm.io/package/get-object-path

## 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

- 0.0.3 (latest) — 2016-03-22
- 0.0.2 — 2014-02-01
- 0.0.1 — 2014-02-01
- 0.0.0 — 2014-02-01

## README

## get-object-path

Return the value at given object path.

## Install

```bash
$ npm install get-object-path
```

## Usage

```js
var get = require('get-object-path')

var context = {
  foo: 'bar',
  qux: {
    hello: 'world',
    eggs: [
      'white egg',
      'brown egg'
    ],
    'delicious fruits :)': [
      'grape',
      'orange',
      'carrot'
    ]
  }
}

get(context, 'foo')
// => 'bar'

get(context, 'qux.hello')
// => world

get(context, 'qux.eggs[0]')
// => white egg

get(context, 'qux.eggs[1]')
// => brown egg

get(context, 'qux.delicious fruits :)[1]')
// => orange
```

See `test.js` for more info.

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