Get running processes through ps
Get running processes through ps
.
ps
wmic
and then powershell
https://github.com/jchip/ps-get
API references can be found here
Or just use your IDE for hint if it supports TypeScript and typedoc.
import { ps, psChildren } from "ps-get";
async function test() {
const procs = await ps();
}
async function testChildren() {
const children = await psChildren(1);
}
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.Licensed under the Apache License, Version 2.0.