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

Function parseArgs

deps/npm/lib/commands/view.js:376–388  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

374module.exports = View
375
376function 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
390function cleanData (obj, wholePackument) {
391 // JSON formatted output (JSON or specific attributes from packument)

Callers 2

execMethod · 0.70
execWorkspacesMethod · 0.70

Calls 2

shiftMethod · 0.45
testMethod · 0.45

Tested by

no test coverage detected