Script/module mode detection while running/loading Lua files.
$ luarocks install modest
This library is a successfully encoding of the Python magic
__name__ variable. In Python programmers often check that
variable to detect if their files are running under script
mode or either being loaded and imported as modules. It is
useful, for example, to provide an usage example for your
library's clients, or even to embed unit tests in your own
modules. It's also useful to expose your own module to be
called from command-line applications (e.g, shell/pipes).