Something went wrong. Try again.
Monorepo for PackTools - tooling for Minecraft Modpacks!
Something went wrong. Try again.
README.md
Packwand's Luau stdlib #
First-party Luau modules (packluau SPEC.md section 8), unlike the rest of packages/, which holds
vendored third-party source. Each <name>.luau here is the module @pw/<name>.
apps/packluau's build compiles every module to bytecode with Luau's compiler and embeds it; nothing is read from disk at run time. A module is deserialized on its firstrequire.- Every module starts with a
--!pw caps=header naming the capabilities its code uses. A script that requires it must declare them too. - The build lints every module: no
pairs, nonext, and nofor k in tover a bare table, since their order is the hash table's. Iterate withpw.sortedor an API's sorted iterator. - A module returns a table. A module run directly (the stdlib tier) runs its
main(...), which returns apw.planor nothing, as a script does.