plugin_bins
A library for managing deno native plugin dependencies
Repository
Current version released
4 years ago
Dependencies
std
deno-plugin-prepare
A library for managing deno native plugin dependencies
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);