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

Deno Pty FFI

deno wrapper over https://docs.rs/portable-pty/latest/portable_pty/ that exposes a simple interface

Usage

import { Pty } from "./src/mod.ts";

const pty = await Pty.create({
  cmd: "bash",
  args: [],
  env: [],
});

await pty.write("ls -la\n");
console.log(await pty.read());