cti-process-environment-variable-reader

1.1.1 • Public • Published

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' );

Readme

Keywords

none

Package Sidebar

Install

npm i cti-process-environment-variable-reader

Weekly Downloads

1

Version

1.1.1

License

ISC

Last publish

Collaborators

  • cantireinnovations