Lua modules
for future references, this is documented from the Lua manual
to use the modules from
lua
, you can callrequire
builtin; therequire
'd module are stored in a tablepackages.loaded
and its content will be loaded inside of a function; the module will only load once and it will only cache the return valueto unload a module, you can set the package from the package table to null (i.e.,
nil
)