$ luarocks install contract
This module checks whether or not arguments passed to a function satisfy a specified contract string. These strings define the argument type requirements for a given function using a custom mini-language. For example, "rt,n|s" represents a contract of one required table argument and one optional argument that can be either a number or a string.
Versions
Dependencies
lua >= 5.1