MCPcopy Create free account
hub / github.com/pulsar-edit/pulsar / getModulePathNodeFiles

Method getModulePathNodeFiles

src/package.js:1183–1193  ·  view source on GitHub ↗
(modulePath)

Source from the content-addressed store, hash-verified

1181
1182 // get the list of `.node` files for the given module path
1183 getModulePathNodeFiles(modulePath) {
1184 try {
1185 const modulePathNodeFiles = fs.listSync(
1186 path.join(modulePath, 'build', 'Release'),
1187 ['.node']
1188 );
1189 return modulePathNodeFiles;
1190 } catch (error) {
1191 return [];
1192 }
1193 }
1194
1195 // Get a Map of all the native modules => the `.node` files that this package depends on.
1196 //

Callers 2

isNativeModuleMethod · 0.95
traversePathMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected