01
Runtime Model
The capability differences between the browser and the server runtime, the event loop's phases, the process object, and the rules of module resolution.
- 01 Differences from the Browser The host environment concept, the global object's contents, the two module systems coexisting, and the server runtime's capability boundaries.
- 02 Event Loop Phases The loop's phase order, the difference between the timers and check phases, when the two microtask queues drain, and the measurable cost of blocking work.
- 03 The Process Object The argument array, environment variables, the object counterpart of the standard streams, the two ways to set an exit code, and the exit hook.
- 04 Module Resolution The three specifier types, the file-extension requirement, the package directory search chain, the exports map, and querying resolution from the program.