package

config

string

A string describing some compile-time configurations for packages.

loaders

table

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

loadlib

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

Dynamically links the host program with the C library libname.

searchers

table

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

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 .