{
  "id": "node-readline-table",
  "kind": "table",
  "slug": "node-readline",
  "iil_id": null,
  "note_url": "https://iinventedlight.com/library/notes/node-readline/",
  "title": "Node.js readline - read a file or stdin line by line, and prompt for input",
  "columns": [
    "name",
    "source",
    "detail"
  ],
  "rows": [
    {
      "name": "'line'",
      "source": "Node.js API docs",
      "detail": "fires for each end-of-line input (\\n, \\r, or \\r\\n) on the input stream, and also when the stream ends without a final end-of-line marker."
    },
    {
      "name": "'close'",
      "source": "Node.js API docs",
      "detail": "is emitted when rl.close() is called, when input receives its 'end' event, or on Ctrl+D, or on Ctrl+C with no 'SIGINT' listener."
    },
    {
      "name": "crlfDelay: Infinity",
      "source": "Node.js API docs",
      "detail": "makes \\r followed by \\n always count as a single newline, which suits files with \\r\\n line delimiters. The default is 100 ms."
    }
  ],
  "related_slugs": [
    "node-process-and-console",
    "node-esm",
    "node-http-and-url"
  ],
  "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."
}