# object-at

> Get object's property according to the path.

Latest version **1.0.1** (published 2016-04-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install object-at
pnpm add object-at
yarn add object-at
bun add object-at
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2016-04-15 |
| First published | 2016-04-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | bubkoo |
| Maintainers | bubkoo |
| Keywords | get, fetch, object, path, key, property, value, at |

## Links

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

## Dependencies (2)

- [is-nil](https://npm.io/package/is-nil.md) ^1.0.1
- [to-path](https://npm.io/package/to-path.md) ^1.0.1

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

- 1.0.1 (latest) — 2016-04-15
- 1.0.0 — 2016-04-13
- 0.0.0 — 2016-04-12

## README

# object-at

> Get object's property according to the path.


[![MIT License](https://img.shields.io/badge/license-MIT_License-green.svg?style=flat-square)](https://github.com/gearcase/object-at/blob/master/LICENSE)

[![build:?](https://img.shields.io/travis/gearcase/object-at/master.svg?style=flat-square)](https://travis-ci.org/gearcase/object-at)
[![coverage:?](https://img.shields.io/coveralls/gearcase/object-at/master.svg?style=flat-square)](https://coveralls.io/github/gearcase/object-at)


## Install

```
$ npm install --save object-at 
```

## Usage

> For more use-cases see the [tests](https://github.com/gearcase/object-at/blob/master/test/spec/index.js)

```js
var at     = require('object-at');
var object = { 'a': [{ 'b': { 'c': 3 } }, 4] };

at(object, 'a[0].b.c'); // => 3
at(object, 'a[1]');     // => 4
at(['a', 'b', 'c'], 2); // => 'c'

at();                       // => undefined
at(['a', 'b', 'c']);        // => undefined
at(['a', 'b', 'c'], 5);     // => undefined
at(['a', 'b', 'c'], '1.2'); // => undefined
```


## Related

- [object-has](https://github.com/gearcase/object-has) - Checks if path is a direct property of object.
- [object-set](https://github.com/gearcase/object-set) - Sets the value at path of object.
- [object-unset](https://github.com/gearcase/object-unset) - Removes the property at path of object.
- [to-path](https://github.com/gearcase/to-path) - Converts string to a property path array. 



## Contributing

Pull requests and stars are highly welcome.

For bugs and feature requests, please [create an issue](https://github.com/gearcase/object-at/issues/new).

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