npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

hyperconf

1.0.2

@mafintosh

npmHomeRepoSnykSocket
Downloads:1005
$ npm install hyperconf
DailyWeeklyMonthlyYearly

hyperconf

Always available, remotely updateable config

npm install hyperconf

Usage

First build a spec, see example.js

Then use it

const Hyperconf = require('hyperconf')
const spec = require('./spec/hyperconf')

// core is the core that contains future versions of the spec
const conf = new Hyperconf(spec, core, { minLength: 0, production: true })

await conf.ready()
console.log(conf.current) // <-- current config, always set

conf.on('update', () => {
  console.log('conf updated', conf.current)
})

License

Apache-2.0