MCPcopy Index your code
hub / github.com/nodejs/node / resolveBuiltBinary

Function resolveBuiltBinary

test/sqlite/test_sqlite_extensions/test.js:15–20  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13
14// Lib extension binary is named differently on different platforms
15function resolveBuiltBinary() {
16 const buildDir = `${__dirname}/build/${common.buildType}`;
17 const lib = 'sqlite_extension';
18 const targetFile = fs.readdirSync(buildDir).find((file) => file.startsWith(lib));
19 return path.join(buildDir, targetFile);
20}
21
22const binary = resolveBuiltBinary();
23

Callers 1

test.jsFile · 0.70

Calls 3

findMethod · 0.65
readdirSyncMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…