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

DirectionPortLabel
InputinputPath JSON
OutputoutputFile content

Gains a second `notFound` handle when `routeNotFound` is enabled.

Properties

PropertyTypeDefaultDescription
File path
path
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 type
contentType
string "text/plain" Content type to tag the read bytes with.
Encoding
encoding
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.