@hapi/topo

Topological sorting with grouping support

This version has been deprecated and is no longer supported or maintained
Last updated 7 years ago by hueniverse .
BSD-3-Clause · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @hapi/topo 
SYNC missed versions from official npm registry.

@hapi/topo

Topological sorting with grouping support.

Build Status

Usage

See the API Reference

Example

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']

Current Tags

  • 6.0.2                                ...           latest (4 years ago)
  • 3.1.6                                ...           lts (7 years ago)
  • 7.0.0-rc.0                                ...           next (4 months ago)

14 Versions

  • 7.0.0-rc.0                                ...           4 months ago
  • 6.0.2                                ...           4 years ago
  • 6.0.1                                ...           4 years ago
  • 6.0.0                                ...           5 years ago
  • 5.1.0                                ...           5 years ago
  • 5.0.0                                ...           7 years ago
  • 3.1.6 [deprecated]           ...           7 years ago
  • 4.0.1 [deprecated]           ...           7 years ago
  • 4.0.0 [deprecated]           ...           7 years ago
  • 3.1.5 [deprecated]           ...           7 years ago
  • 3.1.4 [deprecated]           ...           7 years ago
  • 3.1.3 [deprecated]           ...           7 years ago
  • 3.1.2 [deprecated]           ...           7 years ago
  • 3.1.0 [deprecated]           ...           8 years ago
Maintainers (1)
Downloads
Total 39
Today 1
This Week 2
This Month 33
Last Day 0
Last Week 28
Last Month 3
Dependencies (1)
Dev Dependencies (2)

© 2010 - cnpmjs.org x YWFE | Home | YWFE