https://github.com/jchip/ps-get
Get running processes through ps
https://github.com/jchip/ps-get
ps
Last synced: 3 months ago
JSON representation
Get running processes through ps
- Host: GitHub
- URL: https://github.com/jchip/ps-get
- Owner: jchip
- License: other
- Created: 2020-04-26T20:23:41.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-30T03:49:22.000Z (about 6 years ago)
- Last Synced: 2025-12-26T08:36:47.508Z (6 months ago)
- Topics: ps
- Language: TypeScript
- Size: 81.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ps-get
Get running processes through `ps`.
- Support getting a tree of children that belong to a parent
- Platforms
- Unix: uses `ps`
- Windows: try to use `wmic` and then `powershell`
## APIs
API references can be found [here](https://jchip.github.io/ps-get/modules/index.html)
Or just use your IDE for hint if it supports TypeScript and typedoc.
## Examples
```js
import { ps, psChildren } from "ps-get";
async function test() {
const procs = await ps();
}
async function testChildren() {
const children = await psChildren(1);
}
```
## Why
There are already quite a few modules like this that has millions of weekly downloads, so why another one?
- `ps-tree` - `event-stream`, bug, no activity.
- `ps-list` - no API to get children, me not a fan of embedding `.exe`, even if it's 5x faster.
- others - I didn't do enough searching.
# License
Licensed under the [Apache License, Version 2.0].
[apache license, version 2.0]: https://www.apache.org/licenses/LICENSE-2.0