Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

betterconfig-js-client

sigebacsi6MIT1.0.0

A lib to access your BetterConfig config file.

readme

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