Skip to content

Lua standard libraries

Reference

The Lua interpreter (happyview-lua) keeps these Lua 5.4 standard libraries and builtins. JavaScript and TypeScript scripts get their engine’s own built-ins; see Languages.

Only the following safe functions are available from the os module:

Every other os function is absent, including os.execute, os.remove, os.rename, os.exit, os.getenv and os.clock.

The whole coroutine library.

The whole utf8 library.

The following standard Lua modules are removed and unavailable in the sandbox:

io, debug, package, dofile, loadfile, load, collectgarbage

Lua’s own require is removed too, but HappyView installs its own in its place: it loads installed library plugins and the internal.* built-ins — see Built-in Modules.