@aimelo/lua
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

lua 执行器

环境要求

npm install cmake-js -g cmake

安装

npm install @aimelo/lua --save

接口

declare export class AimeloLua {
    constructor();
    doString(lua: string): { result: number; message: string };
}

示例

import { AimeloLua } from '@aimelo/lua';
const lua = new AimeloLua();
const {result, message} = lua.doString('result=0;message="success";');
lua.close(); //不用时需要关闭

Package Sidebar

Install

npm i @aimelo/lua

Weekly Downloads

6

Version

1.0.5

License

none

Unpacked Size

2.7 MB

Total Files

146

Last publish

Collaborators

  • grolea