{
  "id": "node-os-table",
  "kind": "table",
  "slug": "node-os",
  "iil_id": null,
  "note_url": "https://iinventedlight.com/library/notes/node-os/",
  "title": "Node.js os - CPU count, memory, platform, home and temp directories",
  "columns": [
    "name",
    "source",
    "detail"
  ],
  "rows": [
    {
      "name": "os.availableParallelism()",
      "source": "Node.js API docs",
      "detail": "an estimate of the default amount of parallelism a program should use; always greater than zero"
    },
    {
      "name": "os.cpus()",
      "source": "Node.js API docs",
      "detail": "an array of objects with information about each logical CPU core; can be empty"
    },
    {
      "name": "os.freemem() / os.totalmem()",
      "source": "Node.js API docs",
      "detail": "free and total system memory in bytes"
    },
    {
      "name": "os.platform()",
      "source": "Node.js API docs",
      "detail": "the operating system platform the Node.js binary was compiled for"
    },
    {
      "name": "os.arch()",
      "source": "Node.js API docs",
      "detail": "the CPU architecture the Node.js binary was compiled for"
    },
    {
      "name": "os.homedir()",
      "source": "Node.js API docs",
      "detail": "the current user's home directory path"
    },
    {
      "name": "os.tmpdir()",
      "source": "Node.js API docs",
      "detail": "the operating system's default directory for temporary files"
    },
    {
      "name": "os.loadavg()",
      "source": "Node.js API docs",
      "detail": "the 1, 5, and 15 minute load averages"
    },
    {
      "name": "os.networkInterfaces()",
      "source": "Node.js API docs",
      "detail": "network interfaces that have been assigned a network address"
    },
    {
      "name": "os.EOL",
      "source": "Node.js API docs",
      "detail": "is the operating system-specific end-of-line marker: \\n on POSIX and \\r\\n on Windows."
    },
    {
      "name": "os.platform()",
      "source": "Node.js API docs",
      "detail": "is equivalent to process.platform, and os.arch() to process.arch."
    }
  ],
  "related_slugs": [
    "node-process-and-console",
    "node-fs-and-path",
    "node-buffer"
  ],
  "license": "CC-BY-4.0",
  "source_license": "MIT (Node.js API docs); MIT (nodejs/node (GitHub)); prose restates cited source lines in own words",
  "as_of": "2026-11-18",
  "status": "fill-draft-20261118",
  "note": "Restated from the note's GREEN sources; check those sources before relying on a value."
}