practicalmeteor/meteor-easy-meteor-settings

Name: meteor-easy-meteor-settings

Owner: practicalmeteor

Description: null

Created: 2015-10-08 14:01:30.0

Updated: 2016-01-31 22:29:48.0

Pushed: 2016-02-01 14:33:07.0

Homepage: null

Size: 7

Language: CoffeeScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

practicalmeteor:easy-meteor-settings

Easily read deep values from Meteor.settings using 'a.b.c'

API
ies to find it in public settings first, then in private settings.
MeteorSettings.getSetting(name, defaultValue)

MeteorSettings.getPrivateSetting(name, defaultValue)

MeteorSettings.getPublicSetting(name, defaultValue)

rows Meteor.Error with code 'missing-required-meteor-setting' if name is missing
e it in initialization code, before Meteor.startup, to make sure all your app's
quired settings exist, so that if not, server / client will crash.
ies to find it in public settings first.
MeteorSettings.getRequiredSetting(name)

MeteorSettings.getRequiredPrivateSetting(name)

MeteorSettings.getRequiredPublicSetting(name)

Alternatively, to save you typing, you can use MSettings instead, which is an alias for EasyMeteorSettings.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.