MCPcopy Index your code
hub / github.com/nodejs/node / #parseable

Method #parseable

deps/npm/lib/commands/outdated.js:259–268  ·  view source on GitHub ↗
(list)

Source from the content-addressed store, hash-verified

257 // --parseable creates output like this:
258 // <fullpath>:<name@wanted>:<name@installed>:<name@latest>:<dependedby>
259 #parseable (list) {
260 return list.map(d => [
261 d.path,
262 `${d.name}@${d.wanted}`,
263 d.current ? `${d.name}@${d.current}` : 'MISSING',
264 `${d.name}@${d.latest}`,
265 d.dependent,
266 ...this.npm.config.get('long') ? [d.type, d.homepage, d.dependedByLocation] : [],
267 ].join(':')).join('\n')
268 }
269
270 #json (list) {
271 // TODO(BREAKING_CHANGE): this should just return an array.

Callers 1

execMethod · 0.95

Calls 3

mapMethod · 0.65
getMethod · 0.65
joinMethod · 0.45

Tested by

no test coverage detected