{"_id":"tasklist","_rev":"232608","name":"tasklist","description":"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.","dist-tags":{"latest":"5.0.0"},"maintainers":[{"name":"sindresorhus","email":""}],"time":{"modified":"2023-03-24T16:06:34.000Z","created":"2015-05-31T00:06:18.056Z","5.0.0":"2021-08-12T12:08:15.663Z","4.0.1":"2019-11-12T11:51:46.335Z","4.0.0":"2019-07-07T16:11:20.332Z","3.1.1":"2018-08-09T17:36:15.581Z","3.1.0":"2017-07-15T16:42:35.024Z","3.0.0":"2017-05-01T09:13:46.450Z","2.1.0":"2015-11-14T19:43:27.741Z","2.0.0":"2015-10-17T20:47:05.649Z","1.1.0":"2015-07-13T17:46:08.058Z","1.0.0":"2015-05-31T00:06:18.056Z"},"users":{},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"repository":{"type":"git","url":"git+https://github.com/sindresorhus/tasklist.git"},"versions":{"5.0.0":{"name":"tasklist","version":"5.0.0","description":"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.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/tasklist.git"},"funding":"https://github.com/sponsors/sindresorhus","author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"https://sindresorhus.com"},"type":"module","exports":"./index.js","engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"scripts":{"test":"xo && ava"},"keywords":["tasklist","task","list","windows","win","win32","pid","process","processes","services"],"dependencies":{"csv":"^5.5.0","sec":"^2.0.0"},"devDependencies":{"@types/node":"^16.6.0","ava":"^3.15.0","get-stream":"^6.0.1","xo":"^0.44.0"},"ava":{"files":["test/*.test.js"]},"xo":{"ignores":["*.ts"]},"gitHead":"237ff0e443598ab8d51b92321d0c1f00dc77af57","bugs":{"url":"https://github.com/sindresorhus/tasklist/issues"},"homepage":"https://github.com/sindresorhus/tasklist#readme","_id":"tasklist@5.0.0","_nodeVersion":"12.22.1","_npmVersion":"7.10.0","dist":{"shasum":"0214f8a28c0fa9e042333154e3e3faa45c640404","size":4846,"noattachment":false,"key":"/tasklist/-/tasklist-5.0.0.tgz","tarball":"http://name.csiicloud.com:7001/tasklist/download/tasklist-5.0.0.tgz"},"_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"directories":{},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tasklist_5.0.0_1628770095504_0.4925688670300652"},"_hasShrinkwrap":false,"publish_time":1628770095663,"_cnpm_publish_time":1628770095663,"_cnpmcore_publish_time":"2021-12-16T20:39:23.815Z"},"4.0.1":{"name":"tasklist","version":"4.0.1","description":"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.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/tasklist.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava"},"keywords":["tasklist","task","list","windows","win","win32","pid","process","processes","services"],"dependencies":{"neat-csv":"^5.0.0","sec":"^1.0.0"},"devDependencies":{"ava":"^2.1.0","xo":"^0.24.0"},"gitHead":"ba41e9217629198a3e978ee3a57e0c3ad6199d64","bugs":{"url":"https://github.com/sindresorhus/tasklist/issues"},"homepage":"https://github.com/sindresorhus/tasklist#readme","_id":"tasklist@4.0.1","_nodeVersion":"12.13.0","_npmVersion":"6.12.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"5b43a1f8cb42df630b62e035facf97dcd7b0a50c","size":3011,"noattachment":false,"key":"/tasklist/-/tasklist-4.0.1.tgz","tarball":"http://name.csiicloud.com:7001/tasklist/download/tasklist-4.0.1.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tasklist_4.0.1_1573559506234_0.2638456698528655"},"_hasShrinkwrap":false,"publish_time":1573559506335,"_cnpm_publish_time":1573559506335,"_cnpmcore_publish_time":"2021-12-16T20:39:24.067Z"},"4.0.0":{"name":"tasklist","version":"4.0.0","description":"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.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/tasklist.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=8"},"scripts":{"test":"xo && ava"},"keywords":["tasklist","task","list","windows","win","win32","pid","process","processes","services"],"dependencies":{"neat-csv":"^5.0.0","sec":"^1.0.0"},"devDependencies":{"ava":"^2.1.0","xo":"^0.24.0"},"gitHead":"93dfceab2a138d1bd2c84dc3b03e5d525e44b46f","bugs":{"url":"https://github.com/sindresorhus/tasklist/issues"},"homepage":"https://github.com/sindresorhus/tasklist#readme","_id":"tasklist@4.0.0","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"053a994e261583546507b6c8fa22667a3f140647","size":2986,"noattachment":false,"key":"/tasklist/-/tasklist-4.0.0.tgz","tarball":"http://name.csiicloud.com:7001/tasklist/download/tasklist-4.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tasklist_4.0.0_1562515880158_0.9872967714897014"},"_hasShrinkwrap":false,"publish_time":1562515880332,"_cnpm_publish_time":1562515880332,"_cnpmcore_publish_time":"2021-12-16T20:39:24.317Z"},"3.1.1":{"name":"tasklist","version":"3.1.1","description":"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.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/tasklist.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["tasklist","task","list","windows","win","win32","pid","process","processes","services"],"dependencies":{"neat-csv":"^2.1.0","pify":"^2.2.0","sec":"^1.0.0"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"ba69f5f5fa9536e8c4cd2f61d55bd28245eafcb6","bugs":{"url":"https://github.com/sindresorhus/tasklist/issues"},"homepage":"https://github.com/sindresorhus/tasklist#readme","_id":"tasklist@3.1.1","_npmVersion":"6.3.0","_nodeVersion":"8.11.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"84cb49f8359b9ed0451dd1d9b6111da18107dbd5","size":3050,"noattachment":false,"key":"/tasklist/-/tasklist-3.1.1.tgz","tarball":"http://name.csiicloud.com:7001/tasklist/download/tasklist-3.1.1.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tasklist_3.1.1_1533836175491_0.7409850048167046"},"_hasShrinkwrap":false,"publish_time":1533836175581,"_cnpm_publish_time":1533836175581,"_cnpmcore_publish_time":"2021-12-16T20:39:24.561Z"},"3.1.0":{"name":"tasklist","version":"3.1.0","description":"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.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/tasklist.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["tasklist","task","list","windows","win","win32","pid","process","processes","services"],"dependencies":{"neat-csv":"^2.1.0","pify":"^2.2.0","sec":"^1.0.0"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"aa425150f73bac2126d839edac7460194f45467f","bugs":{"url":"https://github.com/sindresorhus/tasklist/issues"},"homepage":"https://github.com/sindresorhus/tasklist#readme","_id":"tasklist@3.1.0","_shasum":"873a98a4e45cbdecfa2c2ee18865353057e63696","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"873a98a4e45cbdecfa2c2ee18865353057e63696","size":3075,"noattachment":false,"key":"/tasklist/-/tasklist-3.1.0.tgz","tarball":"http://name.csiicloud.com:7001/tasklist/download/tasklist-3.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tasklist-3.1.0.tgz_1500136953987_0.014004691736772656"},"directories":{},"publish_time":1500136955024,"_hasShrinkwrap":false,"_cnpm_publish_time":1500136955024,"_cnpmcore_publish_time":"2021-12-16T20:39:24.787Z"},"3.0.0":{"name":"tasklist","version":"3.0.0","description":"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.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/tasklist.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["tasklist","task","list","windows","win","win32","pid","process","processes","services"],"dependencies":{"neat-csv":"^2.1.0","pify":"^2.2.0","sec":"^1.0.0"},"devDependencies":{"ava":"*","xo":"*"},"gitHead":"2cf97a6467a65a7495832d972b09b12b5c442226","bugs":{"url":"https://github.com/sindresorhus/tasklist/issues"},"homepage":"https://github.com/sindresorhus/tasklist#readme","_id":"tasklist@3.0.0","_shasum":"a1c88dda4d465c25e4791c052188c67f221d1c25","_from":".","_npmVersion":"2.15.11","_nodeVersion":"4.7.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"a1c88dda4d465c25e4791c052188c67f221d1c25","size":2995,"noattachment":false,"key":"/tasklist/-/tasklist-3.0.0.tgz","tarball":"http://name.csiicloud.com:7001/tasklist/download/tasklist-3.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/tasklist-3.0.0.tgz_1493630024635_0.7791586716193706"},"directories":{},"publish_time":1493630026450,"_hasShrinkwrap":false,"_cnpm_publish_time":1493630026450,"_cnpmcore_publish_time":"2021-12-16T20:39:24.987Z"},"2.1.0":{"name":"tasklist","version":"2.1.0","description":"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.","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/tasklist"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["tasklist","task","list","windows","win","win32","pid","process","processes","services"],"dependencies":{"neat-csv":"^1.0.0","pify":"^2.2.0","pinkie-promise":"^2.0.0","sec":"^1.0.0"},"devDependencies":{"ava":"*","xo":"*"},"xo":{"ignores":["test.js"]},"gitHead":"7b877c166f30677d1c0b908856e2a9e3f168b086","bugs":{"url":"https://github.com/sindresorhus/tasklist/issues"},"homepage":"https://github.com/sindresorhus/tasklist","_id":"tasklist@2.1.0","_shasum":"53382e962e090adaf4c67d255057a97eec616e54","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"53382e962e090adaf4c67d255057a97eec616e54","size":2605,"noattachment":false,"key":"/tasklist/-/tasklist-2.1.0.tgz","tarball":"http://name.csiicloud.com:7001/tasklist/download/tasklist-2.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1447530207741,"_hasShrinkwrap":false,"_cnpm_publish_time":1447530207741,"_cnpmcore_publish_time":"2021-12-16T20:39:25.179Z"},"2.0.0":{"name":"tasklist","version":"2.0.0","description":"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.","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/tasklist"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["tasklist","task","list","windows","win","win32","pid","process","processes","services"],"dependencies":{"neat-csv":"^1.0.0","pify":"^2.2.0","pinkie-promise":"^1.0.0","sec":"^1.0.0"},"devDependencies":{"ava":"*","xo":"*"},"xo":{"ignore":["test.js"]},"gitHead":"8bad3fceee9167c8ec1f72e043b9c8afef3db8c7","bugs":{"url":"https://github.com/sindresorhus/tasklist/issues"},"homepage":"https://github.com/sindresorhus/tasklist","_id":"tasklist@2.0.0","_shasum":"38ef89b5c03ca8881a058c02b672f2f1a9fec505","_from":".","_npmVersion":"2.14.4","_nodeVersion":"4.1.1","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"38ef89b5c03ca8881a058c02b672f2f1a9fec505","size":2597,"noattachment":false,"key":"/tasklist/-/tasklist-2.0.0.tgz","tarball":"http://name.csiicloud.com:7001/tasklist/download/tasklist-2.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1445114825649,"_hasShrinkwrap":false,"_cnpm_publish_time":1445114825649,"_cnpmcore_publish_time":"2021-12-16T20:39:25.414Z"},"1.1.0":{"name":"tasklist","version":"1.1.0","description":"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.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/tasklist.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["tasklist","task","list","windows","win","win32","pid","process","processes","services"],"dependencies":{"neat-csv":"^1.0.0","sec":"^1.0.0"},"devDependencies":{"ava":"0.0.4"},"gitHead":"1588e474f8d090fddecc3da6e0f16b04b2537a28","bugs":{"url":"https://github.com/sindresorhus/tasklist/issues"},"homepage":"https://github.com/sindresorhus/tasklist#readme","_id":"tasklist@1.1.0","_shasum":"d20e0ea4436c254578ac3aacbcc01b427cdbaf8d","_from":".","_npmVersion":"2.11.2","_nodeVersion":"0.12.5","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"d20e0ea4436c254578ac3aacbcc01b427cdbaf8d","size":2569,"noattachment":false,"key":"/tasklist/-/tasklist-1.1.0.tgz","tarball":"http://name.csiicloud.com:7001/tasklist/download/tasklist-1.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1436809568058,"_hasShrinkwrap":false,"_cnpm_publish_time":1436809568058,"_cnpmcore_publish_time":"2021-12-16T20:39:25.672Z"},"1.0.0":{"name":"tasklist","version":"1.0.0","description":"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.","license":"MIT","repository":{"type":"git","url":"https://github.com/sindresorhus/tasklist"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=0.10.0"},"scripts":{"test":"node test.js"},"files":["index.js"],"keywords":["tasklist","task","list","windows","win","win32","pid","process","processes","services"],"dependencies":{"neat-csv":"^1.0.0","sec":"^1.0.0"},"devDependencies":{"ava":"0.0.4"},"gitHead":"81f93454145095ada7d5438d891a701003bd56de","bugs":{"url":"https://github.com/sindresorhus/tasklist/issues"},"homepage":"https://github.com/sindresorhus/tasklist","_id":"tasklist@1.0.0","_shasum":"36262656d21bc574401d1a0682e40686b19e0768","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"shasum":"36262656d21bc574401d1a0682e40686b19e0768","size":2448,"noattachment":false,"key":"/tasklist/-/tasklist-1.0.0.tgz","tarball":"http://name.csiicloud.com:7001/tasklist/download/tasklist-1.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":""}],"directories":{},"publish_time":1433030778056,"_hasShrinkwrap":false,"_cnpm_publish_time":1433030778056,"_cnpmcore_publish_time":"2021-12-16T20:39:25.875Z"}},"readme":"# tasklist\n\n> Wrapper for the Windows [`tasklist`](https://technet.microsoft.com/en-us/library/bb491010.aspx) 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.\n\nCleans up and normalizes the data.\n\n## Install\n\n```\n$ npm install tasklist\n```\n\n## Usage\n\n```js\nimport {tasklist} from 'tasklist';\n\nconsole.log(await tasklist());\n/*\n[\n\t{\n\t\timageName: 'taskhostex.exe',\n\t\tpid: 1820,\n\t\tsessionName: 'Console',\n\t\tsessionNumber: 1,\n\t\tmemUsage: 4415488\n\t},\n\t…\n]\n*/\n```\n\n## API\n\nSee the [`tasklist` docs](https://technet.microsoft.com/en-us/library/bb491010.aspx) for more.\n\n### tasklist(options?)\n\nReturns a `Promise<object[]>` that contains the normalized results of the command output.\n\nExamples for `options` below will use this interface, but you can check `tasklist.stream` below for usage of the stream interface.\n\n### tasklistStream(options?)\n\nReturns a `stream.Readable` that returns the resulting lines, normalized, one-by-one.\n\nOptions are the same as the Promise interface.\n\n```js\nimport {tasklistStream} from 'tasklist';\n\ntasklistStream({verbose: true}).pipe(process.stdout);\n/*\n{\n    imageName: 'taskhostex.exe',\n    pid: 1820,\n    sessionName: 'Console',\n    sessionNumber: 1,\n    memUsage: 4415488,\n    status: 'Running',\n    username: 'SINDRESORHU3930\\\\sindre'\n    cpuTime: 0,\n    windowTitle: 'Task Host Window'\n}\n…\n*/\n```\n\n#### options\n\nType: `object`\n\n**Warning**\n- The `system`, `username`, `password` options must be specified together.\n- The `modules` and `services` options can't be specified if verbose is set to `true`.\n- The `modules` and `services` options can't be specified at the same time.\n- When `system`, `username`, `password` options are specified, the filter option can't have `windowtitle` and `status` as the parameter.\n\n##### verbose\n\nType: `boolean`\\\nDefault: `false`\n\nReturn verbose results.\n\nWithout the `verbose` and `apps` option, `tasklist` returns tasks with the following properties:\n\n- `imageName` (Type: `string`)\n- `pid` (Type: `number`)\n- `sessionName` (Type: `string`)\n- `sessionNumber` (Type: `number`)\n- `memUsage` in bytes (Type: `number`)\n\nWith the `verbose` option set to `true` but the `apps` option still set to `false`, it additionally returns the following properties:\n\n- `status` (Type: `string`): One of `Running`, `Suspended`, `Not Responding`, or `Unknown`\n- `username` (Type: `string`)\n- `cpuTime` in seconds (Type: `number`)\n- `windowTitle` (Type: `string`)\n\n**Note:** It's not guaranteed that the `username` and `windowTitle` properties are returned with proper values. If they are *not available*, `'N/A'` may be returned on English systems. In contrast, `'Nicht zutreffend'` may be returned on German systems, for example.\n\n**Verbose example:**\n\n```js\nimport {tasklist} from 'tasklist';\n\nconsole.log(await tasklist({verbose: true}));\n/*\n[\n\t{\n\t\timageName: 'taskhostex.exe',\n        pid: 1820,\n        sessionName: 'Console',\n        sessionNumber: 1,\n        memUsage: 4415488,\n        status: 'Running',\n        username: 'SINDRESORHU3930\\\\sindre'\n        cpuTime: 0,\n        windowTitle: 'Task Host Window'\n\t},\n\t…\n]\n*/\n```\n\n**Warning:** Using the `verbose` option may have a considerable performance impact (See: [#6](https://github.com/sindresorhus/tasklist/issues/6)).\n\n##### system\n\nType: `string`\n\nName or IP address of a remote computer (don't use backslashes). The default is the local computer.\n\n##### username\n\nType: `string`\\\nExample: `'SINDRESORHU3930\\\\sindre'`\n\nUser specified by `User` or `Domain\\User`. The default is the permissions of the current logged on user on the computer issuing the command.\n\n##### password\n\nType: `string`\n\nPassword of the user account for the specified `username`.\n\n##### filter\n\nType: `string[]`\n\nSpecify the types of processes to include or exclude. [More info.](https://technet.microsoft.com/en-us/library/bb491010.aspx)\n\n##### apps\n\nType: `boolean`\n\nDisplays store apps.\nWithout the `verbose` option, the command returns the following data:\n- `imageName` (Type: `string`)\n- `pid` (Type: `number`)\n- `memUsage` in bytes (Type: `number`)\n- `packageName` (Type: `string`)\n\n```js\nimport {tasklist} from 'tasklist';\n\nconsole.log(await tasklist({apps: true}));\n/*\n[\n\t{\n\t\timageName: 'SearchUI.exe (CortanaUI)',\n        pid: 1820,\n        memUsage: 4415488,\n        packageName: 'Microsoft.Windows.Cortana'\n\t},\n\t…\n]\n*/\n```\n\nWith the `verbose` option set to `true`, the command additionally returns the following data:\n- `sessionName` (Type: `string`)\n- `sessionNumber` (Type: `number`)\n- `status` (Type: `string`): One of `Running`, `Suspended`, `Not Responding`, or `Unknown`\n- `username` (Type: `string`)\n- `cpuTime` in seconds (Type: `number`)\n- `windowTitle` (Type: `string`)\n\n**Note:** It's not guaranteed that the `username` and `windowTitle` properties are returned with proper values. If they are *not available*, `'N/A'` may be returned on English systems. In contrast, `'Nicht zutreffend'` may be returned on German systems, for example.\n\n**Verbose example:**\n\n```js\nimport {tasklist} from 'tasklist';\n\nconsole.log(await tasklist({apps: true, verbose: true}));\n/*\n[\n\t{\n\t\timageName: 'SearchUI.exe (CortanaUI)',\n        pid: 1820,\n        sessionName: 'Console',\n        sessionNumber: 1,\n        memUsage: 4415488,\n        status: 'Running',\n        username: 'SINDRESORHU3930\\\\sindre'\n        cpuTime: 0,\n        windowTitle: 'N/A',\n        packageName: 'Microsoft.Windows.Cortana'\n\t},\n\t…\n]\n*/\n```\n\n##### modules\n\nType: `string`\n\nList all tasks using the given DLL module name. If an empty string is given, it will list all tasks with the used DLL modules.\n\n**Note:** You can't use the `verbose` option with this option set.\n\n```js\nimport {tasklist} from 'tasklist';\n\nconsole.log(await tasklist({modules: 'wmiutils.dll'}));\n/*\n[{\n\timageName: 'chrome.exe',\n    pid: 1820,\n    modules: ['wmiutils.dll']\n}, …]\n*/\n```\n\n##### services\n\nType: `boolean`\n\nDisplays services hosted in each process.\n**Note:** You can't use the `verbose` option with this option set.\n\n```js\nimport {tasklist} from 'tasklist';\n\nconsole.log(await tasklist({services: true}));\n/*\n[{\n\timageName: 'lsass.exe',\n    pid: 856,\n    services: ['KeyIso', 'SamSs', 'VaultSvc']\n}, …]\n*/\n```\n\n## Related\n\n- [taskkill](https://github.com/sindresorhus/taskkill) - Wrapper for the Windows `taskkill` command\n\n## Maintainers\n\n- [Sindre Sorhus](https://sindresorhus.com)\n- [Mark Tiedemann](https://marksweb.site)\n","_attachments":{},"homepage":"https://github.com/sindresorhus/tasklist#readme","bugs":{"url":"https://github.com/sindresorhus/tasklist/issues"},"license":"MIT"}