MCPcopy Create free account
hub / github.com/nodejs/node / exec

Method exec

deps/npm/lib/commands/version.js:51–60  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

49 }
50
51 async exec (args) {
52 switch (args.length) {
53 case 0:
54 return this.list()
55 case 1:
56 return this.change(args)
57 default:
58 throw this.usageError()
59 }
60 }
61
62 async execWorkspaces (args) {
63 switch (args.length) {

Callers

nothing calls this directly

Calls 3

listMethod · 0.95
changeMethod · 0.95
usageErrorMethod · 0.80

Tested by

no test coverage detected