Socket
Book a DemoInstallSign in
Socket

node-qconf-promise

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-qconf-promise

QConf Node.js Addon

0.1.0
latest
Source
npmnpm
Version published
Weekly downloads
2
100%
Maintainers
1
Weekly downloads
 
Created
Source

node-qconf-promise

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

NPM version NPM downloads Node.js dependencies

Installation

$ npm install node-qconf-promise --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-promise --save

Useage

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

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'))

qconf.getAllHost_promise('/path/to/node', {maxRetryTimes: 3}).then(function(value) {
  console.log('使用promise获取的是 ' + value)
}, function(err) {
  console.log('使用promise失败 ' + err)
})

Keywords

qconf

FAQs

Package last updated on 07 Aug 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.