Client for BetterConfig (Node.js)
Also available as an npm package: http://www.linktonpmpackage.com
Installation
npm install betterconfig
OR
Download the package: http://www.betterconfig.com/clients/node.zip
Usage
// get a reference for BetterConfig lib
const getBetterConfig = require('./BetterConfig');
// prepare a callback to handle your config object
function callback(data){
console.log(data);
}
// call the function with your BetterConfig URL and callback
getBetterConfig(
'http://test.betterconfig.com/configuration-files/ilsf9gjen1xijjiyirhpxhv1b23jayjj91o98ydlq1tzb1ojjv/configuration.json',
callback);
License
MIT