How to use the configue.disable function in configue

To help you get started, we’ve selected a few configue 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 AdrieanKhisbe / configue / examples / async-with-builder.js View on Github external
const Configue = require('configue');

Configue.disable({env: true})
  .files([
    {file: '../examples/config.json'},
    {
      file: '../examples/config.yaml',
      format: require('nconf-yaml')
    }
  ])
  .resolve()
  .then(configue => {
    const salute = configue.get('salute', 'Hello');
    const who = configue.get('who', 'World');

    console.log(`${salute} ${who}!`);
  });

configue

Configue is a config library to easily customize your app from argv, env, files and more.

MIT
Latest version published 2 years ago

Package Health Score

40 / 100
Full package analysis

Popular configue functions