# objectpathlist

> Converts an JS object to an object pathlist and back

Latest version **1.0.0** (published 2017-04-03) · MIT license · 0 weekly downloads

## Install

```sh
npm install objectpathlist
pnpm add objectpathlist
yarn add objectpathlist
bun add objectpathlist
```

## 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.0 |
| Published | 2017-04-03 |
| First published | 2017-04-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Julian Kern |
| Maintainers | juliankern |
| Keywords | javascript, js, object, path, pathlist |

## Links

- npm: https://www.npmjs.com/package/objectpathlist
- Repository: https://github.com/juliankern/objectpathlist
- Homepage: https://github.com/juliankern/objectpathlist#readme
- Issues: https://github.com/juliankern/objectpathlist/issues
- npm.io page: https://npm.io/package/objectpathlist

## Dependencies (1)

- [lodash](https://npm.io/package/lodash.md) ^4.17.4

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.0.0 (latest) — 2017-04-03

## README

# objectpathlist
Converts an JS object to an object pathlist and back

## Usage
```shell
npm install --save objectpathlist
```

test.json:
```JSON
{
    "one": 1,
    "two": 2, 
    "object": {
        "child": {
            "another": "key"
        }
    },
    "array": [
        1,
        2,
        3, 
        {
            "test": "foo",
            "bar": "baz",
            "float": 0.1
        }
    ]
}
```

some.js:
```JavaScript
var objectpathlist = require('objectpathlist');
objectpathlist.toPathlist(JSONDATA); // to convert object to pathlist
objectpathlist.toObject(PATHLIST); // to convert pathlist (back) to object
```

example pathlist from test.json:
```JavaScript
{ 
    one: 1,
    two: 2,
    'object.child.another': 'key',
    'array.0': 1,
    'array.1': 2,
    'array.2': 3,
    'array.3.test': 'foo',
    'array.3.bar': 'baz',
    'array.3.float': 0.1 
 }
```

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