# get-by-dot

> 🌳 Get value from object using dot path.

Latest version **1.0.2** (published 2019-02-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install get-by-dot
pnpm add get-by-dot
yarn add get-by-dot
bun add get-by-dot
```

## 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.2 |
| Published | 2019-02-03 |
| First published | 2019-02-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Rogan Melo |
| Maintainers | roganmelo |
| Keywords | get, dot, value, utilities, property, pick, path, object |

## Links

- npm: https://www.npmjs.com/package/get-by-dot
- Repository: https://github.com/roganmelo/get-by-dot
- npm.io page: https://npm.io/package/get-by-dot

## 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.2 (latest) — 2019-02-03
- 1.0.1 — 2019-02-03
- 1.0.0 — 2019-02-03

## README

# get-by-dot

🌳 Get value from object using dot path.

<a href="https://nodei.co/npm/get-by-dot/">
  <img src="https://nodei.co/npm/get-by-dot.png?downloads=true">
</a>

[![NPM version](https://badge.fury.io/js/get-by-dot.png)](http://badge.fury.io/js/get-by-dot)
[![Build Status](https://travis-ci.org/roganmelo/get-by-dot.svg?branch=master)](https://travis-ci.org/roganmelo/get-by-dot)![Code Coverage 100%](https://img.shields.io/badge/code%20coverage-100%25-green.svg?style=flat-square)[![ISC License](https://img.shields.io/badge/license-ISC-blue.svg?style=flat-square)](https://github.com/roganmelo/get-by-dot/blob/master/LICENSE)[![NodeJS](https://img.shields.io/badge/node-10.15.x-brightgreen.svg?style=flat-square)](https://github.com/roganmelo/fn-spy/blob/master/package.json#L50)

### API
`import getByDot from 'get-by-dot';`

`getByDot({}, 'path');`


### Usage

```js
  import getByDot from 'get-by-dot';

  const obj = {
    a: { b: 'c' },
    b: [{ c: 'a' }]
  };

  getByDot(obj, 'a.b'); // c
  getByDot(obj, 'a'); // { b: 'c' }
  getByDot(obj, 'a.b.c'); // undefined
  getByDot(obj); // { a: { b: 'c' }, b: [{ c: 'a' }] };
```

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