Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
npm module: validate configuration objects
JavaScript
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
test
.gitignore
LICENSE.md
README.md
index.js
package.json

README.md

require-config-obj

validate configuration objects

usage

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.

installation

$ npm install require-config

running the tests

From project root:

$ npm install
$ npm test

contributors

jden jason@denizac.org

license

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

Something went wrong with that request. Please try again.