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

Function hasFile

deps/npm/test/lib/commands/diff.js:119–119  ·  view source on GitHub ↗
(f)

Source from the content-addressed store, hash-verified

117 })
118
119 const hasFile = (f) => !exec.length || exec.some(e => e.endsWith(f))
120
121 if (hasFile('package.json')) {
122 t.match(output, /-\s*"version": "0\.1\.0"/)

Callers 1

assertFooFunction · 0.85

Calls 1

someMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…