0.4.0 • Published 7 years ago

maf-config-from-json v0.4.0

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

maf-config-from-json

maf-config plugin for node.js, get config from json files

bitHound Overall Score bitHound Dependencies Build Status Coverage Status

NPM

install

npm install maf-config-from-json

usage

var Config = require('maf-config');

var jsonPlugin = require('maf-config-from-json');

var config = new Config();

config
    .use(jsonPlugin)
    .from('/configs/config.json', '.')
    .from('/configs/api.json', 'api')
    .from('/configs/db.json', 'db')
    .init()
    .then(() => {
        console.log(config.get('api.test')));
    })
    .catch((error) => {
        logger.error(error);
    });

LICENSE

MIT

0.4.0

7 years ago

0.3.0

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago