Skip to content

io

luau
local io = require("@std/io")

io.input

Reads a line from standard input. If prompt is provided, it is printed before waiting for input.

User input can be provided via command line stdin, piped input, or redirection from a file. See examples/user_input.luau.

luau
(prompt: string?) -> string