IF Commons GitHub

System

Quality: 90 tests: 90 passed, 0 failed, 0 skipped, 19 of 20 requirements proved, 0 open issues, 0 open tickets. The tests and issues of the library

System, the host of Intellectual Frontiers Commons as one typed library (its specification 0001-system): typed errors (as errors, with mapError, RuntimeError and toError), files (as fs), paths (as path), the folders a program keeps its files in (as dirs), one run at a time (as lock), file watching (as watch), programs found by the prefix of their name (as discover), the process and the programs it runs (as proc), Git read by running it (as git), a program built into one binary (as compile), the operating system's scheduled jobs installed (as jobs) and planned (as jobPlan), and the terminal's streams (as tty and stdio). It names node: builtins and no vendor's global, depends on core, formats and crypto, and runs the same on Bun and on Node 26.

Entry points

Modules

Examples

import { fs, path } from "@intellectual-frontiers/system";
const text = await fs.readTextFile(path.join("a", "b.txt"));

Limits

What the modules of this area do not do, or do only in part, as each module's @limits says.

Titles, headings, exports, tables, columns and requirements. Esc closes.