ts-bigscreen-vue/node_modules/@hapi/topo
JenniferW 52521ef457 大屏构建 2025-03-07 11:00:01 +08:00
..
lib 大屏构建 2025-03-07 11:00:01 +08:00
node_modules/@hapi/hoek 大屏构建 2025-03-07 11:00:01 +08:00
CHANGELOG.md 大屏构建 2025-03-07 11:00:01 +08:00
LICENSE.md 大屏构建 2025-03-07 11:00:01 +08:00
README.md 大屏构建 2025-03-07 11:00:01 +08:00
package.json 大屏构建 2025-03-07 11:00:01 +08:00

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