neg-config

1.0.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i neg-config

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

4.57 kB

Total Files

5

Last publish

Collaborators

  • james.y.yang