Skip to main content
Deno 2 is finally here 🎉️
Learn more

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

  1. Download the fastlist-0.3.0.dll plugin:
> curl -LO https://github.com/MarkTiedemann/deno_fastlist/raw/master/fastlist-0.3.0.dll
  1. 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

License

MIT