@singularitycreations/process-manager
v1.1.9
Published
Process manager module only for Windows enviroment.
Downloads
14
Readme
Process Manager
NodeJS process monitoring module for Windows enviroment to keep process running. If process does not respond certain time period then it will be killed and started again.
Usage
Install it via npm
$ npm i @singularitycreations/process-manager
const { ProcessManager } = require('@singularitycreations/process-manager');
(async () => {
try {
const pm = new ProcessManager({
binaryPath: 'C:\\path\\to\\app.exe',
prName: 'app.exe',
});
await pm.keepRunning();
// your code
} catch (error) {
console.log(error.toString());
}
})();