onlineconf

OnlineConf client for Node.js

Usage no npm install needed!

<script type="module">
  import onlineconf from 'https://cdn.skypack.dev/onlineconf';
</script>

README

onlineconf

Node.js package onlineconf reads configuration files generated by OnlineConf.

Installation

npm install onlineconf

Usage

const onlineconf = require('onlineconf');

// read value
const value = onlineconf.get('/my/parameter');

// watch config changes
onlineconf.on('reload', () => console.log(`new value: ${onlineconf.get('/my/parameter')}`));

Tests

npm test