import { Deno } from "https://deno.land/x/deno@v0.28.0/cli/js/lib.deno_runtime.d.ts";
const { openPlugin } = Deno;
Open and initalize a plugin.
Requires the --allow-plugin
flag.
const plugin = Deno.openPlugin("./path/to/some/plugin.so");
const some_op = plugin.ops.some_op;
const response = some_op.dispatch(new Uint8Array([1,2,3,4]));
console.log(`Response from plugin ${response}`);