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

Function detectRuntimeFeature

deps/undici/undici.js:6099–6107  ·  view source on GitHub ↗
(feature)

Source from the content-addressed store, hash-verified

6097 ["crypto", "sqlite"]
6098 );
6099 function detectRuntimeFeature(feature) {
6100 if (runtimeFeaturesAsNodeModule.includes(
6101 /** @type {RuntimeFeatureByNodeModule} */
6102 feature
6103 )) {
6104 return detectRuntimeFeatureByNodeModule(`node:${feature}`);
6105 }
6106 throw new TypeError(`unknown feature: ${feature}`);
6107 }
6108 __name(detectRuntimeFeature, "detectRuntimeFeature");
6109 var RuntimeFeatures = class {
6110 static {

Callers 1

#detectRuntimeFeatureMethod · 0.70

Calls 2

includesMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…