# @eivifj/dot

> Get and set object properties with dot notation

Latest version **1.0.3** (published 2020-02-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install @eivifj/dot
pnpm add @eivifj/dot
yarn add @eivifj/dot
bun add @eivifj/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.3 |
| Published | 2020-02-22 |
| First published | 2019-10-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Maintainers | eivifj |
| Keywords | dot, notation, properties, object, path |

## Links

- npm: https://www.npmjs.com/package/@eivifj/dot
- Repository: https://github.com/eivindfjeldstad/dot
- Homepage: https://github.com/eivindfjeldstad/dot#readme
- Issues: https://github.com/eivindfjeldstad/dot/issues
- npm.io page: https://npm.io/package/@eivifj/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
- [@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
- [tg-resolve](https://npm.io/package/tg-resolve.md) — 176 weekly downloads

## Recent versions

- 1.0.3 (latest) — 2020-02-22
- 1.0.2 — 2019-10-21
- 1.0.1 — 2019-10-20
- 1.0.0 — 2019-10-20
- 0.2.0 — 2019-10-20

## README

# dot

  Get and set object properties with dot notation

## Installation

    $ npm install @eivifj/dot

## API

### dot.set(object, path, value)
```js
dot.set(obj, 'cool.aid', 'rocks');
assert(obj.cool.aid === 'rocks');
```

### dot.get(object, path)
```js
var value = dot.get(obj, 'cool.aid');
assert(value === 'rocks');
```

### dot.delete(object, path)
```js
var value = dot.delete(obj, 'cool.aid');
assert(!obj.cool.hasOwnProperty('aid'));
```

## License

  MIT

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