How to use the rc/lib/utils.env function in rc

To help you get started, we’ve selected a few rc 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 uber-node / tcurl / index.js View on Github external
function env() {
    var envConf = rcUtils.env('TCURL_');
    return traverse(envConf).map(camelcaseObjectKeys);

    function camelcaseObjectKeys(value) {
        if (typeof value === 'object') {
            this.update(camelCaseKeys(value));
        }
    }
}
github uber-archive / idl / bin / idl.js View on Github external
function getEnvConf(memo, prefix) {
        var envConf = rcUtils.env(prefix + '_');
        return extend(memo, traverse(envConf).map(camelcaseObjectKeys));
    }

rc

hardwired configuration loader

(BSD-2-Clause OR MIT OR Apach…
Latest version published 7 years ago

Package Health Score

70 / 100
Full package analysis