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 1 year ago

Package Health Score

78 / 100
Full package analysis

Popular @hapi/topo functions