Generally you do not need to use this module - it is injected into the every program's environment. However, it may be useful when building a custom shell or when running programs yourself.
Construct the package and require function, and insert them into a custom environment.
- New in version 1.88.0
|make(env, dir)||Build an implementation of Lua's package library, and a requirefunction to load modules within it.|
- make(env, dir)Source
- env table The environment to load packages into.
- dir string The directory that relative packages are loaded from.