| 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. |