# pathseq

> Dead simple object path to sequence converter.

Latest version **1.1.0** (published 2017-05-24) · MIT license · 0 weekly downloads

## Install

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

## 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.1.0 |
| Published | 2017-05-24 |
| First published | 2017-03-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | ennovum |
| Maintainers | ennovum |

## Links

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

## Recent versions

- 1.1.0 (latest) — 2017-05-24
- 1.0.3 — 2017-05-23
- 1.0.2 — 2017-03-09
- 1.0.1 — 2017-03-03
- 1.0.0 — 2017-03-03

## README

# pathseq

Dead simple object path to sequence converter.
It breaks a path to an object nested value down to a sequence form.

### Install

`pathseq` is available to download through [NPM](https://www.npmjs.com/package/pathseq).
```
npm install pathseq
```

### Use

```
pathseq(path);
```

**Arguments**

`path` *(string)* object nested value path.

**Returns**

*(array)* object nested value path sequence.

**Examples**

Basic use:
```
const path = 'foo.bar.baz';
const sequence = pathseq(path); // ['foo', 'bar', 'baz']
```
You can work with arrays too:
```
const path = 'foo[1].bar[2][3].baz';
const sequence = pathseq(path); // ['foo', 1, 'bar', 2, 3, 'baz']
```

### Develop

If you want to fork and develop `pathseq`, these commands are for you:
```
npm run dev
npm run test-dev
```

### Test

`pathseq` is equipped with a test suite. You can run it with:
```
npm run test
```

### Licence

MIT

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