@std/io standard library MIT engine >= 0.1.0

Terminal streams, pretty-printing, line input, and raw mode.

import { io } from "@std/io";

overview

Reach for @std/io when a program talks to the terminal: write and writeError for color-aware pretty-printing with newlines, writeRaw for exact bytes, read and readLine for input, width and height for layout, colorProfile for the ColorLevel tier, setRawMode for character-at-a-time input. File I/O stays in @std/fs.

capabilities

  • Color-aware pretty-printing
  • stdin/stdout/stderr handles
  • Line input and size queries
  • Raw mode toggling

No API data yet