1.0.0 • Published 4 years ago

neg-config v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

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