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
| Module | Description |
|---|---|
fs | Filesystem I/O, metadata, and filesystem path operations. |
is | Type predicates for Lua values and filesystem path types. |
keyword | Helpers for Lua keywords and identifiers. |
List | A list class for creating, transforming, and querying sequences of values. |
ntpath | Windows/NT-style path operations. |
operator | Lua operators exposed as functions. |
path | Cross-platform path operations with host-platform semantics. |
posixpath | POSIX-style path operations. |
repr | Readable string rendering for Lua values. |
runtime | Lua runtime metadata and version compatibility flags. |
Set | A set class for creating, combining, and querying unique values. |
str | String operations for searching, splitting, trimming, and formatting text. |
stringcase | String case conversion and word splitting. |
tbl | Table operations for querying, copying, merging, and transforming tables. |
template | String template rendering with <code v-pre>{{. |
utils | Shared utility helpers used across the Mods library. |
validate | Validation 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.