fongandrew:env-setting

v0.1.0Published 10 years ago

This package has not had recent updates. Please investigate it's current state before committing to using it in your project.

meteor-env-setting

Simple helper to check environment variable for value before Meteor settings.

Installation

meteor add fongandrew:env-setting

Usage

getEnvSetting("MY_SETTING") will first look for a MY_SETTING environment variable before checking Meteor.settings.MY_SETTING.

getEnvSetting("MY_SETTING", true) will treat a MY_SETTING environment variable as JSON and parse it accordingly.