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

Method exec

deps/npm/lib/npm.js:189–201  ·  view source on GitHub ↗
(cmd, args = this.argv)

Source from the content-addressed store, hash-verified

187 }
188
189 async exec (cmd, args = this.argv) {
190 if (!this.#command) {
191 let err
192 try {
193 await this.#exec(cmd, args)
194 } catch (e) {
195 err = e
196 }
197 return this.#handleError(err)
198 } else {
199 return this.#exec(cmd, args)
200 }
201 }
202
203 // Call an npm command
204 async #exec (cmd, args) {

Callers 15

parseLineMethod · 0.45
parseFunction · 0.45
addon-verify.mjsFile · 0.45
update-c-ares.mjsFile · 0.45
processResultsMethod · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls 2

#execMethod · 0.95
#handleErrorMethod · 0.95

Tested by 5

testFunction · 0.36
testFunction · 0.36
testFunction · 0.36
testFunction · 0.36
testFunction · 0.36