MCPcopy Create free account
hub / github.com/Noumena-Network/code / loadBinding

Function loadBinding

src/shims/sharp/sharpBinding.darwin-x64.cjs:6–19  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

4let cachedBinding;
5
6function loadBinding() {
7 if (cachedBinding !== undefined) {
8 return cachedBinding;
9 }
10
11 if (process.platform !== 'darwin' || process.arch !== 'x64') {
12 throw new Error(
13 `sharp native runtime in this build targets darwin-x64; received ${process.platform}-${process.arch}`,
14 );
15 }
16
17 cachedBinding = loadEmbeddedSharp(sharpDarwinX64Assets);
18 return cachedBinding;
19}
20
21module.exports = loadBinding();

Callers 1

Calls 1

loadEmbeddedSharpFunction · 0.85

Tested by

no test coverage detected