Terminal
The terminal, as pure code (commons terminal 0001-terminal): a typed command-line parser (args) and command trees (commands), the one palette of colour roles and marks (palette), display width and the cutting of a text by columns (width), and a small terminal emulator for snapshot tests (vt). Each is a namespace of this entry and an entry of its own (@intellectual-frontiers/terminal/args, and so on), so that a program imports what it uses; nothing here touches the host.
Entry points
Modules
Examples
import { args } from "@intellectual-frontiers/terminal";
const options = { verbose: args.flag({ help: "Say more." }) };
args.parseArgs(["--verbose"], { options, operands: [] }); // an Args value with options.verbose true