Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno/cli/js/lib.deno_runtime.d.ts>Deno.openPlugin

A modern runtime for JavaScript and TypeScript.
Go to Latest
function Deno.openPlugin
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}`);

Parameters

filename: string