0.0.4 • Published 6 years ago

confjson v0.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

confjson

Get started

Set defaults at app entrypoint

Values loaded from config.json will override defaults or the file will be created if not found.

const config = require('confjson')({
  k1: [ 'hello' ]
}, 'config/config.json')

Get settings in app sub modules

const config = require('confjson')()

Override settings in test cases

Alter the (global) config to make test conditions

const config = require('confjson)({
  k1: 'world',
  k2: []
})
0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago