Skip to main content
js.stuartsm
  • Home
  • Learn
  • Reference
  • Glossary
  • Projects
  • Search
  • About
  1. Reference
  2. Node.js

Node.js

Node-specific APIs and runtime behavior.

  • fs/promises and node:pathReading and writing files with Node's promise-based file system API, and building paths safely with the path module.
  • node:http โ€” A Minimal HTTP ServerNode's built-in HTTP server module โ€” request/response handling with no framework, and why every input from it is untrusted.
  • package.json and package-lock.jsonpackage.json describes a Node project's scripts and dependencies; package-lock.json pins the exact versions actually installed, for reproducibility.
  • package.json exportsExplicitly declares a package's public entry points โ€” anything not listed isn't importable by consumers, making internal refactoring safe.
  • StreamsProcesses data in chunks as it arrives, instead of loading an entire file or response into memory at once.

A JavaScript learning and reference site โ€” read to learn, search to look something up.

  • About
  • Reference
  • Curriculum
  • RSS feed