- Notifications
You must be signed in to change notification settings - Fork18
Cross-platform native method to receive the list of the launched processes
License
NotificationsYou must be signed in to change notification settings
reklatsmasters/node-process-list
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Cross-platform native method to receive the list of the launched processes
npm i process-list# oryarn add process-listIt's that easy! npm will download one of theprebuilt binaries for your OS. If you need to buildprocess-list, seenode-gyp for more details.
WindowsWindows 7+, Windows Server 2008 R2+Linuxany Linux-based distributivesOS XSoon...
const{ snapshot}=require("process-list");consttasks=awaitsnapshot('pid','name');console.log(tasks);// output// [{// name: "1.exe",// pid: 1234,// }, ... ]
Returns the list of the launched processes.
List of allowed fields.
pid: Number- process pidppid: Number- parent process pidname: String- process name (title)path: String- full path to the process binary filethreads: Number- threads per processowner: String- the owner of the processpriority: Number- an os-specific process prioritycmdline: String- full command line of the processstarttime: Date- the process start date / timevmem: String- virtual memory size in bytes used by processpmem: String- physical memory size in bytes used by processcpu: Number- cpu usage by process in percentutime: String- amount of time in ms that this process has been scheduled in user modestime: String- amount of time that in ms this process has been scheduled in kernel mode
MIT, Copyright © 2014 - 2019 Dmitry Tsvettsikh
About
Cross-platform native method to receive the list of the launched processes
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.
