library modules
The lib module group consists of library files written in Kyro itself, located inside the $KYRO_HOME/lib directory.
These can be imported into your scripts using the use function with a lib:<module name> prefix and stored in a namespace.
Example
var math = use("lib:math");
Quick Note:
You can view a module's public functions and variables at runtime using the dir function:
var json = use("lib:json");
echo dir(json);
index of lib modules
- lib:datetime: high-level object-oriented date and time utilities.
- lib:json: encoder and decoder for JSON strings and files.
- lib:math: mathematical constants and trigonometric functions.
- lib:path: object-oriented path manipulation and filesystem utilities.