health-monitor-service

1.1.1 • Public • Published

#Monitor serivces

How to use it?

Install

npm install health-monitor-service --save

or install global

npm install health-monitor-service -g

Use with lib

const Service = require('health-monitor-service').service;
let cfg = {host:"localhost",port:22};
let promise = Service.ssh(cfg);
promise.then((data)=>{
    //dosomething right
},(error)=>{
    //dosomething error
});

Use with web server

const server = require('health-monitor-service').server;
server.listen("your_port", "your_host", 1, (req, res) => {
    //dosome thing
});

Readme

Keywords

none

Package Sidebar

Install

npm i health-monitor-service

Weekly Downloads

1

Version

1.1.1

License

ISC

Last publish

Collaborators

  • hieuit7