(args)
| 374 | module.exports = View |
| 375 | |
| 376 | function parseArgs (args) { |
| 377 | if (!args.length) { |
| 378 | args = ['.'] |
| 379 | } |
| 380 | |
| 381 | const pkg = args.shift() |
| 382 | |
| 383 | return { |
| 384 | pkg, |
| 385 | local: /^\.@/.test(pkg) || pkg === '.', |
| 386 | rest: args, |
| 387 | } |
| 388 | } |
| 389 | |
| 390 | function cleanData (obj, wholePackument) { |
| 391 | // JSON formatted output (JSON or specific attributes from packument) |
no test coverage detected