process-listener

1.0.4 • Public • Published

📃 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.
    `)
});
 
 
 

Package Sidebar

Install

npm i process-listener

Weekly Downloads

4

Version

1.0.4

License

ISC

Unpacked Size

2.78 kB

Total Files

4

Last publish

Collaborators

  • armagan_