# path-object

> access object keys with a path

Latest version **2.3.0** (published 2015-02-20) · MIT license · 0 weekly downloads

## Install

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

## 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 | 2.3.0 |
| Published | 2015-02-20 |
| First published | 2015-02-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Christoph Witzko |
| Maintainers | christophwitzko |
| Keywords | path, object |

## Links

- npm: https://www.npmjs.com/package/path-object
- Repository: https://github.com/christophwitzko/path-object
- Issues: https://github.com/christophwitzko/path-object/issues
- npm.io page: https://npm.io/package/path-object

## Dependencies (2)

- [core-util-is](https://npm.io/package/core-util-is.md) ^1.0.1
- [lodash.assign](https://npm.io/package/lodash.assign.md) ^3.0.0

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

- 2.3.0 (latest) — 2015-02-20
- 2.2.0 — 2015-02-20
- 2.1.1 — 2015-02-18
- 2.1.0 — 2015-02-10
- 2.0.0 — 2015-02-10
- 1.0.1 — 2015-02-10
- 1.0.0 — 2015-02-10

## README

# path-object
[![Build Status](https://travis-ci.org/christophwitzko/path-object.svg)](https://travis-ci.org/christophwitzko/path-object)

## Install

    $ npm install -S path-object

## Example

```javascript
var PathObject = require('path-object')()

var fileObj = new PathObject()

fileObj.set('path/to/file1', 'file1 content')
fileObj.set('path/to/file2', 'file2 content')
fileObj.set('another/path/to/file', 'another file content')

console.log('dump:', fileObj.dump())
console.log('dump with scope:', fileObj.dump('path'))

console.log('get by path:', fileObj.get('another/path/to/file'))
```

## Licence

The [MIT License (MIT)](http://opensource.org/licenses/MIT)

Copyright © 2015 [Christoph Witzko](https://twitter.com/christophwitzko)

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