# @tleef/topo

> Topological sorting with grouping support

Latest version **3.0.0-r.1** (published 2018-08-10) · BSD-3-Clause license · 0 weekly downloads

## Install

```sh
npm install @tleef/topo
pnpm add @tleef/topo
yarn add @tleef/topo
bun add @tleef/topo
```

## 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 | 3.0.0-r.1 |
| Published | 2018-08-10 |
| First published | 2018-08-10 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6.10 |
| Dependencies | 2 |
| Unpacked size | 8.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | tleef |
| Keywords | topological, sort, toposort, topsort |

## Links

- npm: https://www.npmjs.com/package/@tleef/topo
- Repository: https://github.com/tleef/topo
- Homepage: https://github.com/tleef/topo#readme
- Issues: https://github.com/tleef/topo/issues
- npm.io page: https://npm.io/package/@tleef/topo

## Dependencies (2)

- [@tleef/hoek](https://npm.io/package/@tleef/hoek.md) ^5.0.3-r.1
- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.0.0-beta.56

## Alternatives

- [cli-color](https://npm.io/package/cli-color.md) — 3.4M weekly downloads
- [log](https://npm.io/package/log.md) — 1.3M weekly downloads
- [logstash-client](https://npm.io/package/logstash-client.md) — 4.5K weekly downloads
- [@nocobase/plugin-logger](https://npm.io/package/@nocobase/plugin-logger.md) — 2.0K weekly downloads
- [child-process-debug](https://npm.io/package/child-process-debug.md) — 695 weekly downloads

## Recent versions

- 3.0.0-r.1 (latest) — 2018-08-10

## README

# topo

Topological sorting with grouping support.

![npm (scoped)](https://img.shields.io/npm/v/@tleef/topo.svg)
![Travis (.org) branch](https://img.shields.io/travis/tleef/topo/release.svg)
![Coveralls github branch](https://img.shields.io/coveralls/github/tleef/topo/release.svg)

Lead Maintainer: [Devin Ivy](https://github.com/devinivy)

## Usage

See the [API Reference](API.md)

**Example**
```node
const Topo = require('topo');

const morning = new Topo();

morning.add('Nap', { after: ['breakfast', 'prep'] });

morning.add([
    'Make toast',
    'Pour juice'
], { before: 'breakfast', group: 'prep' });

morning.add('Eat breakfast', { group: 'breakfast' });

morning.nodes;        // ['Make toast', 'Pour juice', 'Eat breakfast', 'Nap']
```

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