process-listener
v1.0.4
Published
This allows you to listen process started or exited.
Downloads
2
Maintainers
Readme
📃 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.
`)
});