Skip to content

singularitycreations/process-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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());
    }    
})();

About

NodeJS process manager module for Windows enviroment.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published