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

Method exec

deps/npm/lib/commands/run.js:42–48  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

40 }
41
42 async exec (args) {
43 if (args.length) {
44 await this.#run(args, { path: this.npm.localPrefix })
45 } else {
46 await this.#list(this.npm.localPrefix)
47 }
48 }
49
50 async execWorkspaces (args) {
51 await this.setWorkspaces()

Callers

nothing calls this directly

Calls 2

#runMethod · 0.95
#listMethod · 0.95

Tested by

no test coverage detected