MCPcopy Create free account
hub / github.com/browserify/static-module / isRequire

Function isRequire

index.js:384–391  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

382}
383
384function isRequire (node) {
385 var c = node.callee;
386 return c
387 && node.type === 'CallExpression'
388 && c.type === 'Identifier'
389 && c.name === 'require'
390 ;
391}
392
393function isStream (s) {
394 return s && typeof s === 'object' && typeof s.pipe === 'function';

Callers 1

walkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…