Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/reklatsmasters/win-ps
Process list in windows
https://github.com/reklatsmasters/win-ps
Last synced: 24 days ago
JSON representation
Process list in windows
- Host: GitHub
- URL: https://github.com/reklatsmasters/win-ps
- Owner: reklatsmasters
- License: mit
- Created: 2015-11-14T12:46:07.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2015-11-29T13:59:13.000Z (almost 9 years ago)
- Last Synced: 2024-10-04T14:18:44.709Z (about 1 month ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# win-ps
[![npm](https://img.shields.io/npm/v/win-ps.svg)](https://npmjs.org/package/win-ps)
[![license](https://img.shields.io/npm/l/win-ps.svg)](https://npmjs.org/package/win-ps)
[![downloads](https://img.shields.io/npm/dm/win-ps.svg)](https://npmjs.org/package/win-ps)
[![Code Climate](https://codeclimate.com/github/ReklatsMasters/win-ps/badges/gpa.svg)](https://codeclimate.com/github/ReklatsMasters/win-ps)
>Process list in windows### Install
```
npm i win-ps
```This module required `powershell@3` or above.
### API
#### `.snapshot([fields])`
Return array with info of each runned process.###### param `fields` Array
Array of fields to select. Default fields is `ProcessId,Name,Path,ParentProcessId,Priority`. Full list of avalable fields see below.
###### return Promise##### example
```js
const ps = require('win-ps');ps.snapshot().then((list) => {/* ... */})
```### Fields
```
Handles
ProcessName
PSComputerName
VM
WS
Caption
CommandLine
CreationClassName
CreationDate
CSCreationClassName
CSName
Description
ExecutablePath
ExecutionState
Handle
HandleCount
InstallDate
KernelModeTime
MaximumWorkingSetSize
MinimumWorkingSetSize
Name
OSCreationClassName
OSName
OtherOperationCount
OtherTransferCount
PageFaults
PageFileUsage
ParentProcessId
PeakPageFileUsage
PeakVirtualSize
PeakWorkingSetSize
Priority
PrivatePageCount
ProcessId
QuotaNonPagedPoolUsage
QuotaPagedPoolUsage
QuotaPeakNonPagedPoolUsage
QuotaPeakPagedPoolUsage
ReadOperationCount
ReadTransferCount
SessionId
Status
TerminationDate
ThreadCount
UserModeTime
VirtualSize
WindowsVersion
WorkingSetSize
WriteOperationCount
WriteTransferCount
Path
```See [Win32_Process class][msdn]
### Supports
nodejs **>=4**### License
MIT, 2015 (c) Dmitry Tsvettsikh[msdn]: https://msdn.microsoft.com/en-us/library/aa394372(v=vs.85).aspx