Skip to content

sauramirez/settings-module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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');

About

Easier config files loading in node js

Resources

License

Stars

Watchers

Forks

Packages

No packages published