How to use @vrbo/determination - 1 common examples

To help you get started, we’ve selected a few @vrbo/determination 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 ExpediaGroup / steerage / lib / config.js View on Github external
const resolve = async function ({ config, basedir, protocols, environment }) {

    const defaultProtocols = {
        file:    Handlers.file(basedir),
        path:    Handlers.path(basedir),
        base64:  Handlers.base64(),
        env:     Handlers.env(),
        require: Handlers.require(basedir),
        exec:    Handlers.exec(basedir),
        glob:    Handlers.glob(basedir)
    };

    protocols = Hoek.applyToDefaults(defaultProtocols, protocols);

    const resolver = Determination.create({
        config,
        protocols,
        criteria: environment
    });

    return await resolver.resolve();
};

@vrbo/determination

Configuration resolver using confidence and shortstop.

MIT
Latest version published 2 years ago

Package Health Score

48 / 100
Full package analysis

Popular @vrbo/determination functions