settings-module

0.1.2 • Public • Published

Settings module

Load config files from the CONFIG environment variable.

Using settings-module

Node config is very simple. You set the filepath to the CONFIG environment variable and settings-module will load it for you.

// config.js
exports.API_KEY = 'TEST';

// lib/index.js
// process.env.CONFIG = ./config.js
const Config = require('settings-module');
Config.get('API_KEY');

/settings-module/

    Package Sidebar

    Install

    npm i settings-module

    Weekly Downloads

    1

    Version

    0.1.2

    License

    MIT

    Last publish

    Collaborators

    • saumotions