0.0.3 • Published 10 years ago

config-schema v0.0.3

Weekly downloads
3
License
GPLv3
Repository
github
Last release
10 years ago

config-schema

Build Status

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.'
0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago

0.0.0

10 years ago