node package manager

Introducing npm Enterprise add-ons. Integrate third-party dev tools into npm…


confg helps config enviroment variables with javascript

Configurable enviroment with a js file.

npm install confg

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

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

to use it in you app

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