const activeConfig = process . env . config ; let config ; if ( activeConfig === undefined ) { config = require ( "../config.json" ) ; console . log ( "using config <default>" ) ; } else { config = require ( `../config.${ activeConfig }.json` ) ; console . log ( `using config <${ activeConfig }>` ) ; } export class Config { public static get ( key ) { return config [ key ] ; } }