Skip to main content

fastlist

List all running processes on Windows.

Like fastlist, but for Deno. A faster alternative to tasklist.

For each process, fastlist returns (1) the process ID, (2) the parent process ID, and (3) the name of the executable file.

Quickstart

  1. Download the fastlist-0.2.0.dll plugin:
> curl -O https://raw.githubusercontent.com/MarkTiedemann/deno_fastlist/0.2.0/fastlist-0.2.0.dll
  1. Run the example.ts code:
// example.ts
import { fastlist } from "https://deno.land/x/fastlist@0.2.0/mod.ts";

let decoder = new TextDecoder();
let plugin = Deno.openPlugin("fastlist-0.2.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.2.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