@polyplug/loaders-native
v0.1.3
Published
polyplug native cdylib bundle loader for JavaScript/TypeScript hosts (Deno runtime required; Node FFI backend planned)
Maintainers
Readme
@polyplug/loaders-native
polyplug native cdylib 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 { registerNativeLoader } from "@polyplug/loaders-native";Requires @polyplug/host. The
loader native (libpolyplug_native) must be resolvable by the OS loader or via the
POLYPLUG_NATIVE_LIB environment variable.
