Skip to content

Mods ​

Mods is a set of pure Lua modules for daily development. Minimal dependencies, predictable APIs, and support for Lua 5.1, 5.2, 5.3, 5.4, and LuaJIT. Use modules through require("mods") and access helpers via mods.<name>.

NOTE

We are still working on adding new modules and improving the docs.

Modules ​

ModuleDescription
isType predicates for Lua values and filesystem path kinds.
ListPython-style list helpers for mapping, filtering, and slicing.
operatorOperator helpers as functions.
SetSet operations and helpers for unique values.
strString utility helpers modeled after Python's str.
stringcaseString case conversion helpers.
tblUtility functions for plain Lua tables.
templateSimple template rendering with value replacement.
utilsCommon utility helpers.
validateValidation helpers for Lua values.

Contribute ​

Have an idea or found a bug? Open an issue, start a discussion, or submit a pull request.