Skip to content

Mods

Mods is a Lua utility library with predictable APIs, 💤 lazy-loaded inter-module dependencies, and support for Lua 5.1, 5.2, 5.3, 5.4, and LuaJIT.

IMPORTANT

This library is not stable yet, and APIs may change between releases.

Modules

ModuleDescription
fsFilesystem I/O, metadata, and filesystem path operations.
isType predicates for Lua values and filesystem path types.
keywordHelpers for Lua keywords and identifiers.
ListA list class for creating, transforming, and querying sequences of values.
ntpathWindows/NT-style path operations.
operatorLua operators exposed as functions.
pathCross-platform path operations with host-platform semantics.
posixpathPOSIX-style path operations.
reprReadable string rendering for Lua values.
runtimeLua runtime metadata and version compatibility flags.
SetA set class for creating, combining, and querying unique values.
strString operations for searching, splitting, trimming, and formatting text.
stringcaseString case conversion and word splitting.
tblTable operations for querying, copying, merging, and transforming tables.
templateString template rendering with <code v-pre>{{.
utilsShared utility helpers used across the Mods library.
validateValidation helpers for Lua values and filesystem path types.

NOTE

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

Contribute

Found a 🐛 bug or want to suggest an ✨ improvement? Open an issue, start a discussion, or submit a pull request.