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

deno-plugin-prepare

A library for managing deno native plugin dependencies

tag Build Status license tag

Useage

import {
  prepare,
  PreprareOptions
} from "https://raw.githubusercontent.com/manyuanrong/deno-plugin-prepare/master/mod.ts";

const releaseUrl =
  "https://github.com/manyuanrong/deno_mongo/releases/download/plugin_bins";

const pluginOptions: PreprareOptions = {
  name: "test_plugin",
  urls: {
    mac: `${releaseUrl}/libtest_plugin.dylib`,
    win: `${releaseUrl}/test_plugin.dll`,
    linux: `${releaseUrl}/libtest_plugin.so`
  }
};
const plugin: Deno.Plugin = await prepare(pluginOptions);
const { testSync } = plugin.ops;

const response = testSync.dispatch(new Uint8Array([116, 101, 115, 116]))!;

console.log(response);