Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/npm/cli
/ exec
Method
exec
lib/utils/allow-scripts-cmd.js:64–66 ·
view source on GitHub ↗
(args)
Source
from the content-addressed store, hash-verified
62
63
// Standalone `npm approve-scripts` / `npm deny-scripts` pick their mode from `static verb`.
64
async
exec (args) {
65
return
this.runMode(this.constructor.verb, args)
66
}
67
68
async
runMode (mode, args) {
69
this.#mode = mode
Callers
nothing calls this directly
Calls
1
runMode
Method · 0.95
Tested by
no test coverage detected