Deno FFI
Plugin to call dynamic library functions in Deno.
Usage
import { Library } from "https://deno.land/x/[email protected]/mod.ts";
const lib = new Library("path/to/file.(so|dll|dylib)", {
add: {
params: ["i32", "i32"],
returns: "i32",
},
});
console.log("add", lib.call("add", 1, 2));
License
Check LICENSE for more info.
Copyright 2021 @ DjDeveloperr