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

Function isKeyModuleRequire

tools/eslint-rules/no-keyobject-cryptokey-instanceof.js:24–30  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

22]);
23
24function isKeyModuleRequire(node) {
25 return node?.type === 'CallExpression' &&
26 isRequireCall(node) &&
27 isString(node.arguments[0]) &&
28 (node.arguments[0].value === CRYPTO_KEYS_MODULE ||
29 node.arguments[0].value === WEBCRYPTO_MODULE);
30}
31
32function getPropertyName(node) {
33 if (!node) return undefined;

Callers 1

registerRequireFunction · 0.85

Calls 2

isRequireCallFunction · 0.70
isStringFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…