loadBinding
Load @wvb/node's native binding.
Load @wvb/node's native binding.
dirOrFile is either:
- a directory:
loadBindingpicks the<binaryName>.<target>.nodefile inside it that matches the currentprocess.platform/process.arch(the same per-target namesbinding.cjsresolves), e.g.wvb-node.darwin-arm64.node; or - a
.nodefile: it is loaded directly.
import { loadBinding } from '@wvb/node/binding';
const wvbNode = loadBinding(nodeBindingsDir);
const source = new wvbNode.Source({ builtinDir, remoteDir });function loadBinding(dirOrFile: string): __module;Parameters
Prop
Type
Returns
__module