/ stream.nieuweinstituut.nl / node_modules / @hapi / topo /

[ICO]NameLast modifiedSizeDescription
[PARENTDIR]Parent Directory  -  
[DIR]lib/2 years ago -  
[TXT]CHANGELOG.md40 years ago354  
[TXT]LICENSE.md40 years ago1.5K 
[TXT]README.md40 years ago755 d768d73 docs [كارل مبارك]
[   ]package.json2 years ago1.5K3e510ca test new git [كارل مبارك]
README.md

@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']
Apache/2.4.38 (Debian) Server at www.karls.computer Port 80