Nerdiest Precious Modules

npm

Need private packages and team management tools?Check out npm Orgs. »

confg

0.0.5 • Public • Published

Confg

Configurable enviroment with a js file.

npm install confg

Use

By default confg uses config.js in the root directory. This is eg. of config file.

config.js
var pkg = require('package.json');
 
module.exports = function( confg ){
 
    confg.configuration({
        APPSECRET: '2323O3IM4OIGM3OIM',
        VERSION: pkg.version,
        APPSTARTUP: ( +new Date() ) + ''
    });
};
start

to use it in you app

var confg = require( 'confg' );
 
confg.init( );

Config

var confg = require( 'confg' );
 
confg.use( __dirname + '/development.js' );
confg.init( );

install

npm i confg

Downloadsweekly downloads

284

version

0.0.5

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability