require-config-obj

validate configuration objects

require-config-obj

validate configuration objects

var requireConfig = require('require-config-obj')

var config = {
  foo: 'bar',
  baz: 42
}

requireConfig(config, {
  foo: String,
  baz: Number
})
// => undefined

requireConfig(config, {
  qux: Boolean
})
// throws:

Missing required config parameter:
  qux: Boolean

Interface is defined as a tracery object.

$ npm install require-config

From project root:

$ npm install
$ npm test

jden jason@denizac.org

MIT. (c) 2013 Agile Diagnosis hello@agilediagnosis.com. See LICENSE.md