This package has been deprecated

Author message:

This module has moved and is now available at @hapi/topo. Please update your dependencies as this version is no longer maintained an may contain bugs and security issues.

topo
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/topo package

3.0.3 • Public • Published

topo

Topological sorting with grouping support.

Build Status

Lead Maintainer: Devin Ivy

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

/topo/

    Package Sidebar

    Install

    npm i topo

    Weekly Downloads

    764,249

    Version

    3.0.3

    License

    BSD-3-Clause

    Unpacked Size

    9.18 kB

    Total Files

    4

    Last publish

    Collaborators

    • devinivy
    • marsup
    • nargonath
    • nlf