cti-process-environment-variable-reader
v1.1.1
Published
Reads environment variables and logs the results
Downloads
21
Readme
cti-process-environment-variable-reader
var bunyan = require( 'bunyan' );
var EnvironmentVariableReader = require( 'cti-process-environment-variable-reader' );
var log = bunyan.createLogger( { name: 'app' } );
var env = new EnvironmentVariableReader( log );
var dealerId = env.getRequired( 'DEALER_ID', -10 );
var dealerTopic = env.getOptional( 'DEALER_TOPIC', 'wacky.topic' );