# unsplay

> Compute a tree from an array of objects with IDs and parent IDs

Latest version **1.0.5** (published 2015-07-09) · MIT license · 0 weekly downloads

## Install

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

## 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.5 |
| Published | 2015-07-09 |
| First published | 2015-07-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Dan Kaplun |
| Maintainers | dbkaplun |

## Links

- npm: https://www.npmjs.com/package/unsplay
- Repository: https://github.com/dbkaplun/unsplay
- Issues: https://github.com/dbkaplun/unsplay/issues
- npm.io page: https://npm.io/package/unsplay

## Recent versions

- 1.0.5 (latest) — 2015-07-09
- 1.0.4 — 2015-07-09
- 1.0.3 — 2015-07-09
- 1.0.2 — 2015-07-09
- 1.0.1 — 2015-07-09

## README

# unsplay
Compute a tree from an array of objects with IDs and parent IDs

## Installation
```shell
$ npm install unsplay
```

## Usage
```javascript
>> var unsplay = require('unsplay');
>> unsplay([{id: 0}, {id: 1, pid: 0}], 'id', 'pid');
[{
  item: {id: 0},
  children: [{
    item: {id: 1, pid: 0},
    children: []
  }]
}]
```

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