Read File
io.read-file Input v0.1.0 Reads file content from a configured path or input path. contentType "auto" infers from the extension; routeNotFound emits a notFound port when missing.
Ports
| Direction | Port | Label |
|---|---|---|
| Input | input | Path JSON |
| Output | output | File content |
Gains a second `notFound` handle when `routeNotFound` is enabled.
Properties
| Property | Type | Default | Description |
|---|---|---|---|
File pathpath | string | — | Absolute path of the file to read (or use the dynamic path below). |
File path (dynamic)pathPath | string | "path" | Dotted path to read the file path from the input. |
Content typecontentType | string | "text/plain" | Content type to tag the read bytes with. |
Encodingencoding | select | "utf8" | Encoding used to read the file. utf8base64 |
Route 'not found'routeNotFound | boolean | false | Emit a separate notFound port instead of failing when the file is missing. |
This page is generated from the node registry by gen-node-docs.mjs on every
site build — ports, properties, defaults and visibility rules cannot drift from the code.