Skip to content

robi-richter/confee

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Confee

About

This is a simple module to easily manage configurations for NodeJS applications. You can extend configurations, so it's easy to override other configurations from a base file for example

Usage:

const config = require('confee');

config.init({
  srcFolder:'./config', // path to config files
  type: 'js'  // or 'json'
});

// load config.
const configObj = config.load('myconfig');

// access data from the config object
configObj.get('site.email');
configObj.get('email.smtp.username');

Config files can extend other config files:

base.js:

module.exports = {
  version: '1.2.4',
  name: 'foo'
};

development.js:

module.exports = {
  extends: 'base',
  name: 'bar'
};

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published