README.md 586 B

lofig

npmjs.com/package/config for client side JavaScript

Installation

npm install lofig --save --production

You can also use https://cdn.rawgit.com/atjonathan/lofig/master/lofig.js.

Usage

import 'lofig' from 'lofig'; // not necessary if using CDN Link
// change config folder
lofig.folder = 'config/default.json';
// check if property exists
lofig.has('secret', res => {});
// return property
lofig.get('secret', res => {});

See example folder for more details.