0.2.1 • Published 7 years ago
tasklist-stream v0.2.1
tasklist-stream
Same as tasklist
but with a streaming interface.
Installation
npm install tasklist-stream
Quickstart
const tasklist = require('tasklist-stream')
tasklist()
.on('data', console.log)
/* { imageName: 'node.exe',
pid: 408,
sessionName: 'Console',
sessionNumber: 2,
memUsage: 23031808 }
{ imageName: 'tasklist.exe',
pid: 3728,
sessionName: 'Console',
sessionNumber: 2,
memUsage: 8884224 } */
Examples
- get all tasks that have run for more than a minute
- get the title of the currently selected Chrome tab
API
Documentation coming soon.
License
WTFPL – Do What the F*ck You Want to Public License.
Made with :heart: by @MarkTiedemann.