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

Function parseableOutput

deps/npm/lib/commands/ls.js:572–588  ·  view source on GitHub ↗
({ global, long, seenNodes })

Source from the content-addressed store, hash-verified

570}
571
572const parseableOutput = ({ global, long, seenNodes }) => {
573 let out = ''
574 for (const node of seenNodes.values()) {
575 if (node.path && node[_include]) {
576 out += node.path
577 if (long) {
578 out += `:${node.pkgid}`
579 out += node.path !== node.realpath ? `:${node.realpath}` : ''
580 out += isExtraneous(node, { global }) ? ':EXTRANEOUS' : ''
581 out += node[_invalid] ? ':INVALID' : ''
582 out += node.overridden ? ':OVERRIDDEN' : ''
583 }
584 out += '\n'
585 }
586 }
587 return out.trim()
588}

Callers 1

execMethod · 0.85

Calls 2

isExtraneousFunction · 0.85
valuesMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…