@credenceanalytics/service-heartbeat
v0.0.1
Published
Keep an eye on the active (running) status of the mentioned service.
Downloads
2
Readme
service-heartbeat
Installation
npm install @credenceanalytics/service-heartbeat
Key Features
- Keep an eye on the active (running) status of the mentioned service.
Getting Started
- Import
service-heartbeat
module and utilize itsstart
function - Start function require parameter
- path -> __filename
- heartbeatFile -> heartbeatFile location
- setTime -> time (default time 5000) [optional]
Use:
const worker = require('service-heartbeat');
worker.start(path,heartbeatFile,setTime);