A function argument type-checker.

$ 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.


1.2-16 days ago2 downloads
1.1-226 days ago2 downloads
1.1-11 year ago57 downloads
1.0-11 year ago(revision: 2)6 downloads
0.2-11 year ago(revision: 2)13 downloads


lua >= 5.1