packagelib¶
config¶
A string describing some compile-time configurations for packages.
cpath¶
The path used by require
to search for a C loader.
loaded¶
A table used by require
to control which modules are already loaded.
loaders¶
A table used by require
to control how to load modules.
loadlib¶
Dynamically links the host program with the C library libname
.
path¶
The path used by require
to search for a Lua loader.
preload¶
A table to store loaders for specific modules.
searchers¶
A table used by require
to control how to load modules.
searchpath¶
function package.searchpath(name: string, path: string, sep?: string, rep?: string)
-> filename: string?
2. errmsg: string?
Searches for the given name
in the given path
.
seeall¶
Sets a metatable for module
with its __index
field referring to the global environment, so that this module inherits values from the global environment. To be used as an option to function module
.