New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

confjson

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

confjson

Load settings file or create one with defaults

latest
Source
npmnpm
Version
0.0.4
Version published
Maintainers
1
Created
Source

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

Keywords

defaults

FAQs

Package last updated on 11 Jul 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts