Repository
Current version released
4 years ago
Versions
fastlist
List all running processes on Windows.
A faster tasklist
. Like fastlist.exe
, but for Deno.
For each process, fastlist returns (1) the process ID, (2) the parent process ID, and (3) the executable file.
Quickstart
- Download the
fastlist-0.3.0.dll
plugin:
> curl -LO https://github.com/MarkTiedemann/deno_fastlist/raw/master/fastlist-0.3.0.dll
- Run the
example.ts
code:
// example.ts
import { fastlist } from "https://deno.land/x/fastlist@0.3.0/mod.ts";
let decoder = new TextDecoder();
let plugin = Deno.openPlugin("fastlist-0.3.0.dll");
for (let [pid, ppid, exe] of fastlist(plugin)) {
console.log(pid + "\t" + ppid + "\t" + decoder.decode(exe));
}
Deno.close(plugin);
> deno run --unstable --allow-plugin https://deno.land/x/fastlist@0.3.0/example.ts
0 0 [System Process]
4 0 System
72 4 Secure System
128 4 Registry
520 4 smss.exe
740 632 csrss.exe
828 632 wininit.exe
...
Development
- Install Microsoft C++ Build Tools
- Install Rust
- Run
make
License
MIT