Licence
MIT
Version
0.1.3
Deps
4
Size
11 kB
Vulns
25
Weekly
0
Javascript client for https://github.com/crossworth/service-manager
Example usage:
const serviceManager = require('@crossworth/service-manager');
const PORT = 8080;
serviceManager.register({
name: 'MyService',
managerEndpoint: 'http://localhost:8080',
endpoint: serviceManager.getLocalIP() + ':' + PORT,
value: 'my value',
});
You can provide a function to the value as well.