neg-config
v1.0.0
Published
node.js client for Newegg configuration service.
Downloads
15
Readme
neg-config
This is node.js client for Newegg configuration service.
Install
$ npm install neg-config
How to Use
var config = require('neg-config');
config.init({connectionString: '10.16.75.23:8481, 10.16.75.25:8481, 10.16.75.26:8481'})
.then(() =>{
config.watchConfig('envionment', 'name', (data) => {
console.log(data); //get data first time
}, (data) => {
console.log(data); //call back when data changed
});
}).catch((error) => console.error(error));
License
MIT