Notorious Preying Mantis
Learn how companies like Phone2Action are using npm in their front-end developmentJoin the conversation »

node-qconf

0.3.1 • Public • Published

node-qconf

Qihoo360 QConf(https://github.com/Qihoo360/QConf) Node.js addon.

NPM version NPM downloads Node.js dependencies

Installation

$ npm install node-qconf --save

Notes:

  • You need set the Environment Variable QCONF_INSTALL before install this addon.
$ export QCONF_INSTALL=/home/work/local/qconf(For MacOS use: export QCONF_INSTALL=/usr/local/qconf)
$ npm install node-qconf --save

Useage

var qconf = require('node-qconf');

console.log('version:', qconf.version())
console.log('getConf:', qconf.getConf('/demo'))
console.log('getBatchKeys:', qconf.getBatchKeys('/backend', 'test'))
console.log('getBatchConf:', qconf.getBatchConf('/backend/umem/users'))
console.log('getAllHost:', qconf.getAllHost('/backend/umem/users'))
console.log('getHost:', qconf.getHost('/backend/umem/users'))

Install

npm i node-qconf

DownloadsWeekly Downloads

12

Version

0.3.1

License

MIT

Unpacked Size

10.4 kB

Total Files

7

Last publish

Collaborators

  • avatar
  • avatar
  • avatar