System
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
src/mod.tssrc/errors.tssrc/fs.tssrc/path.tssrc/dirs.tssrc/lock.tssrc/watch.tssrc/discover.tssrc/proc.tssrc/git.tssrc/compile.tssrc/schedule.tssrc/job-plan.tssrc/tty.tssrc/stdio.ts
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.