Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/skyone-wzw/easy-lua
Use Lua in Node.js
https://github.com/skyone-wzw/easy-lua
Last synced: about 1 month ago
JSON representation
Use Lua in Node.js
- Host: GitHub
- URL: https://github.com/skyone-wzw/easy-lua
- Owner: skyone-wzw
- Created: 2022-01-25T11:41:54.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-01-25T13:41:06.000Z (almost 3 years ago)
- Last Synced: 2024-12-01T11:08:52.579Z (about 2 months ago)
- Language: C
- Homepage:
- Size: 236 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Easy Lua
Use Lua in Node.js simply.
```js
const simpleLua = require("easy-lua");simpleLua.doFile("./test.lua");
```
* `doFile(path: string)`run a lua file
* `doFileFunction(path: string, funName: string, returnType: string, ...arg)`
run a funtion with args in a lua file
For dev
```shell
npm i -g node-gyp
node-gyp configure
node-gyp build
```See [examples](examples)