@polyplug/loaders-lua
v0.1.3
Published
polyplug Lua bundle loader for JavaScript/TypeScript hosts (Deno runtime required; Node FFI backend planned)
Downloads
483
Readme
@polyplug/loaders-lua
polyplug Lua bundle loader for JavaScript/TypeScript hosts.
Runtime requirement: Deno. This loader opens its native library through Deno's FFI (
Deno.dlopen). It installs and imports under Node.js but throws at runtime there. A Node FFI backend is planned. Until then, use Deno.
Usage
import { Runtime } from "@polyplug/host";
import { registerLuaLoader } from "@polyplug/loaders-lua";Requires @polyplug/host. The
loader native (libpolyplug_lua) must be resolvable by the OS loader or via the
POLYPLUG_NATIVE_LIB environment variable.
