You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prebuilt binaries are currently available for Lua 5.4.8 and downloaded automatically from [GitHub Releases](https://github.com/quaternion/node-lua-state/releases).
48
48
If a prebuilt binary is available for your platform, installation is instant - no compilation required. Otherwise, it will automatically build from source.
@@ -51,7 +51,7 @@ If a prebuilt binary is available for your platform, installation is instant - n
51
51
52
52
> **Tip:** if you only use prebuilt binaries you can reduce install size with `npm install lua-state --no-optional`.
53
53
54
-
## 🧠 [Basic Usage](#basic-usage)
54
+
## 🧠 Basic Usage <aid="basic-usage"></a>
55
55
56
56
```js
57
57
constlua=newLuaState();
@@ -129,7 +129,7 @@ All Lua operations in `lua-state` are **synchronous** by design. The Lua VM runs
129
129
130
130
> ⚠️ **Note**: Lua 5.1 and LuaJIT have a small internal C stack, which may cause stack overflows when calling JS functions in very deep loops. Lua 5.1.1+ uses a larger stack and does not have this limitation.
131
131
132
-
## 🧩 [API Reference](#api-reference)
132
+
## 🧩 API Reference <aid="api-reference"></a>
133
133
134
134
### `LuaState` Class
135
135
@@ -152,7 +152,7 @@ new LuaState(options?: {
152
152
|`getLength(path)`| Get length of table |`number \| null \| undefined`|
153
153
|`getVersion()`| Get Lua version |`string`|
154
154
155
-
## 🔄 [Type Mapping (JS ⇄ Lua)](#type-mapping)
155
+
## 🔄 Type Mapping (JS ⇄ Lua) <aid="type-mapping"></a>
156
156
157
157
When values are passed between JavaScript and Lua, they’re automatically converted according to the tables below. Circular references are supported internally and won’t cause infinite recursion.
0 commit comments