1.0.4 • Published 5 years ago

process-listener v1.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

📃 Process Listener

Works on macOS, Linux, and Windows.

💾 Install

$ npm install process-listener

💠 Usage

const PSListener = require("process-listener");

let psl = new PSListener("Discord.exe");

psl.started(({pid, name})=>{
    console.log(`
    >> Process Started.
    >> Process ID: ${pid}
    >> Process Name: ${name}
    `)
});

psl.exited(()=>{
    console.log(`
    >> Process Exited.
    `)
});