Skip to content

clarkttfu/confjson

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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: []
})

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published