Appearance
local io = require("@std/io")
Reads a line from standard input. If prompt is provided, it is printed before waiting for input.
prompt
User input can be provided via command line stdin, piped input, or redirection from a file. See examples/user_input.luau.
examples/user_input.luau
(prompt: string?) -> string