Package Exports
- tasklist
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (tasklist) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
tasklist 
Wrapper for the Windows
tasklist
command. Returns a list of apps and services with their Process ID (PID) for all tasks running on either a local or a remote computer.
Cleans up and normalizes the data.
Install
$ npm install --save tasklist
Usage
const tasklist = require('tasklist');
tasklist().then(data => {
console.log(data);
/*
[{
imageName: 'taskhostex.exe',
pid: 1820,
sessionName: 'Console',
sessionNumber: 1,
memUsage: 4415488, // bytes
status: 'Running',
username: 'SINDRESORHU3930\\sindre
cpuTime: 0, // seconds
windowTitle: 'Task Host Window'
}, ...]
*/
});
API
See the tasklist
docs for more.
tasklist([options])
Returns a promise for an array of running tasks.
options
The system
, username
, password
options are mutually inclusive.
system
Type: string
Name or IP address of a remote computer (do not use backslashes). The default is the local computer.
username
Type: string
User specified by User or Domain\User. The default is the permissions of the current logged on user on the computer issuing the command.
password
Type: string
Password of the user account for the specified username
.
filter
Type: array
Specify the types of processes to include or exclude. More info.
Related
- taskkill - Wrapper for the Windows
taskkill
command
License
MIT © Sindre Sorhus