$ luarocks install lua-checkargs
checkargs is a Lua library designed for argument validation in Lua functions.
It provides functions to validate function arguments based on various criteria such as type, range, presence of fields in tables, and more.
Versions
Dependencies
lua >= 5.1