How to use @hapi/topo - 1 common examples

To help you get started, we’ve selected a few @hapi/topo examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github DrewML / scd / src / sequenceResolver.ts View on Github external
export function sequenceResolver(configs: Module[]) {
    const sort = new TopologicalSort();
    for (const config of configs) {
        sort.add(config, {
            group: config.moduleID,
            after: config.sequence,
        });
    }

    return sort.nodes as string[];
}

@hapi/topo

Topological sorting with grouping support

BSD-3-Clause
Latest version published 2 years ago

Package Health Score

77 / 100
Full package analysis

Popular @hapi/topo functions