JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 61307
  • Score
    100M100P100Q164025F
  • License MIT

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.

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 Build status

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

var tasklist = require('tasklist');

tasklist(function (err, 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], callback)

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.

callback(error, data)

data

Type: array

License

MIT © Sindre Sorhus