@mantris/config
v6.2.2
Published
Configuration object.
Downloads
9
Readme
@mantris/config
Install
npm i @mantris/config
Usage
const factory = require('@mantris/config')
const config = factory({
host: 'http://mantris.io/'
})
console.log(config.has('host')) // true
console.log(config.has('foo')) // false
console.log(config.host) // http://mantris.io/
console.log(config.get('host')) // http://mantris.io/
console.log(config.get('foo')) // null
console.log(config.get('foo', 'bar')) // bar