2023-05-11 19:35:23 -06:00
|
|
|
# Lua Dog
|
|
|
|
|
2023-06-16 20:39:17 -06:00
|
|
|
Adds functions to Lua Standard Libraries and Pandoc Library.
|
2023-05-11 19:35:23 -06:00
|
|
|
|
|
|
|
## Install
|
|
|
|
|
2023-05-11 19:56:25 -06:00
|
|
|
luarocks install lua-dog
|
2023-05-11 19:35:23 -06:00
|
|
|
|
2023-06-16 20:39:17 -06:00
|
|
|
## Usage
|
|
|
|
|
|
|
|
You can use Lua Dog in 2 ways.
|
|
|
|
|
|
|
|
The laziest way is:
|
|
|
|
|
|
|
|
local dog = require("dog")
|
|
|
|
dog.import()
|
|
|
|
-- Lua Dog 'dog.os.uname()' function was imported as 'os.uname()'
|
|
|
|
os.uname()
|
|
|
|
|
|
|
|
This will import all Lua Dog functions to the Lua Standard Libraries and Pandoc Library.
|
|
|
|
|
|
|
|
If you prefer not to import, the way is:
|
|
|
|
|
|
|
|
require "dog"
|
|
|
|
-- Lua Dog 'dog.os.uname()' function was NOT imported as 'os.uname()'
|
|
|
|
dog.os.uname()
|
|
|
|
|
2023-05-11 19:35:23 -06:00
|
|
|
## Functions
|
|
|
|
|
2023-05-11 20:17:03 -06:00
|
|
|
Check `src`.
|