Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

config-schema

0.0.3 • Public • Published

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

install

npm i config-schema

Downloadsweekly downloads

2

version

0.0.3

license

GPLv3

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability