Skip to content

packagelib

config

string

A string describing some compile-time configurations for packages.

View documents

cpath

string

The path used by require to search for a C loader.

View documents

loaded

table

A table used by require to control which modules are already loaded.

View documents

loaders

table

A table used by require to control how to load modules.

View documents

loadlib

function package.loadlib(libname: string, funcname: string)
  -> any

Dynamically links the host program with the C library libname.

View documents

path

string

The path used by require to search for a Lua loader.

View documents

preload

table

A table to store loaders for specific modules.

View documents

searchers

table

A table used by require to control how to load modules.

View documents

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.

View documents

seeall

function package.seeall(module: table)

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 .

View documents