loadLibViaPlug
Download the platform cdylib from a release via @denosaurs/plug, verify it, cache it, and load it.
Download the platform cdylib from a release via @denosaurs/plug, verify it, cache it, and load
it. For deno run / library use where the dylib isn't bundled. NOT for self-contained
deno desktop builds — there, vendor + --include the dylib and use loadLib.
Requires --allow-net --allow-read --allow-write --allow-env --allow-ffi.
function loadLibViaPlug(options: LoadLibViaPlugOptions = {}): Promise<DynamicLibrary<{ … }>>;Parameters
Prop
Type
Returns
Promise<DynamicLibrary<{ … }>>