MCPcopy Create free account
hub / github.com/nodejs/node-addon-api / checkFileWin32

Function checkFileWin32

tools/check-napi.js:56–66  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

54
55// Use dumpbin /imports to list symbols.
56function checkFileWin32 (file) {
57 checkFile(file, 'dumpbin', ['/imports', file], (soFar, line) => {
58 if (soFar === undefined) {
59 line = line.match(/([0-9a-f]*)? +([a-zA-Z0-9]) (.*$)/);
60 if (line && /^napi/.test(line[line.length - 1])) {
61 soFar = true;
62 }
63 }
64 return soFar;
65 });
66}
67
68// Descend into a directory structure and pass each file ending in '.node' to
69// one of the above checks, depending on the OS.

Callers 1

recurseFunction · 0.85

Calls 1

checkFileFunction · 0.85

Tested by

no test coverage detected