Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 430 Bytes

README.md

File metadata and controls

27 lines (18 loc) · 430 Bytes

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