about

You can use external lua modules, wrote with the Lua language

You should place it to the modules folder

A module can be written in the single file. In this case module name will be same as filename

An example:

root
|
| modules
  | conv.lua
script.lua
local conv = require('conv')

The module can be placed in one folder with several files. In this case folder must have file init.lua with export code

An example:

root
|
| modules
  | conv.lua
  | money
    | convert.lua
    | compress.lua
    | init.lua
script.lua
local money = require('money')