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

Method npx

deps/npm/lib/commands/cache.js:115–126  ·  view source on GitHub ↗
([cmd, ...keys])

Source from the content-addressed store, hash-verified

113
114 // npm cache npx
115 async npx ([cmd, ...keys]) {
116 switch (cmd) {
117 case 'ls':
118 return await this.npxLs(keys)
119 case 'rm':
120 return await this.npxRm(keys)
121 case 'info':
122 return await this.npxInfo(keys)
123 default:
124 throw this.usageError()
125 }
126 }
127
128 // npm cache clean [spec]*
129 async clean (args) {

Callers 1

execMethod · 0.95

Calls 4

npxLsMethod · 0.95
npxRmMethod · 0.95
npxInfoMethod · 0.95
usageErrorMethod · 0.80

Tested by

no test coverage detected