airsl 0.1.3

Embeddable Lua 5.4 runtime with a capability-gated sandbox and a host standard library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
-- The directory module, reached as `require("lib")`.
--
-- There is no `lib.lua`, so the loader falls through to this file. That second candidate is what
-- lets a component keep its parts in a subdirectory and still be required by the name of the
-- directory, instead of forcing every project into a flat file per module.

BODIES_RUN = BODIES_RUN or {}
BODIES_RUN[#BODIES_RUN + 1] = "lib"

-- A dotted target is resolved against the script root, not against the directory this file sits
-- in. There is no relative `require` here: a name means the same file wherever it is written, so
-- moving a module changes the name once rather than in every file that reaches it.
local text = require("lib.text")

return {
  version = "1.0.0",
  text = text,
}