config-schema
v0.0.3
Published
A lightweight wrapper for configuration options using JSON schema
Downloads
6
Readme
config-schema
A lightweight wrapper for configuration options using JSON schema.
example
This is an example, lifted from ship:
@configSchema = new ConfigSchema()
@configSchema.schema.projectRoot =
required: true
default: './'
type: 'string'
description: 'The path to the root of the project to be shipped.'
@configSchema.schema.sourceDir =
required: true
default: './public'
type: 'string'
description: ''
@configSchema.schema.ignore =
required: true
default: ['ship*.opts']
type: 'array'
description: 'Minimatch-style strings for what files to ignore. This can be repeated to add multiple ignored patterns.'