@singularitycreations/process-manager

1.1.9 • Public • Published

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

/@singularitycreations/process-manager/

    Package Sidebar

    Install

    npm i @singularitycreations/process-manager

    Weekly Downloads

    1

    Version

    1.1.9

    License

    MIT

    Unpacked Size

    14 kB

    Total Files

    7

    Last publish

    Collaborators

    • madisx
    • asadzaheer
    • eiq