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

Function detectRuntimeFeatureByNodeModule

deps/undici/undici.js:6083–6093  ·  view source on GitHub ↗
(moduleName)

Source from the content-addressed store, hash-verified

6081 "node:sqlite": /* @__PURE__ */ __name(() => require("node:sqlite"), "node:sqlite")
6082 };
6083 function detectRuntimeFeatureByNodeModule(moduleName) {
6084 try {
6085 lazyLoaders[moduleName]();
6086 return true;
6087 } catch (err) {
6088 if (err.code !== "ERR_UNKNOWN_BUILTIN_MODULE" && err.code !== "ERR_NO_CRYPTO") {
6089 throw err;
6090 }
6091 return false;
6092 }
6093 }
6094 __name(detectRuntimeFeatureByNodeModule, "detectRuntimeFeatureByNodeModule");
6095 var runtimeFeaturesAsNodeModule = (
6096 /** @type {const} */

Callers 1

detectRuntimeFeatureFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected