MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / isModuleExports

Function isModuleExports

src/lib/prettierFormatter.js:385–394  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

383}
384
385function isModuleExports(node) {
386 return (
387 node?.type === "MemberExpression" &&
388 !node.computed &&
389 node.object?.type === "Identifier" &&
390 node.object.name === "module" &&
391 node.property?.type === "Identifier" &&
392 node.property.name === "exports"
393 );
394}
395
396function evaluateNode(node, scope) {
397 if (!node) return null;

Callers 1

readCommonJsExportFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected