MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / loadAddon

Function loadAddon

libatomic/scripts/package-runtime.mjs:22–28  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

20});
21
22function loadAddon(path) {
23 // require() treats .so/.dylib/.dll as JavaScript. dlopen loads Node-API
24 // exports directly while preserving the platform library's installed name.
25 const addon = { exports: {} };
26 process.dlopen(addon, path);
27 return addon.exports;
28}
29
30export function packageRuntime(
31 { target, buildDir, outputDir, version, revision },

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected