A Lua parser and transpiler to JavaScript that generates Mozilla Parser API ASTs. The current version is 0.0.11, with no recent releases or active development evident. It targets Lua 5.1 with partial support and aims to run unmodified Lua programs in JavaScript environments. Unlike other Lua transpilers, it provides options for Lua-JS interop such as automatic conversion of LuaTable to arrays/objects and method call syntax remapping. It requires no runtime dependencies and is distributed as a single minified file. The project has significant gaps: many standard library functions (e.g., string.format, pattern matching, coroutines, debug) are missing, and certain Lua syntax features (expression table keys, goto) are unsupported. The repository appears to be in maintenance or abandoned state.
No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Default import is the parser object. CommonJS require also works.
Named export for the parse function.
Named export for the translate function.
Parses a Lua Fibonacci function and translates it to JavaScript, demonstrating basic usage of parse and translate.
Breaking-change detection hasn't run for this library yet.
CVE tracking and dependency tree are planned for a later release.