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

Function configSetAllowScripts

deps/npm/lib/utils/allow-scripts-remediation.js:6–7  ·  view source on GitHub ↗
(names)

Source from the content-addressed store, hash-verified

4// of trying (and, for global installs, failing) to write it to the local
5// project config.
6const configSetAllowScripts = (names) =>
7 `npm config set allow-scripts=${names.join(',')} --location=user`
8
9module.exports = { configSetAllowScripts }

Callers 3

remediationLinesFunction · 0.85
execMethod · 0.85

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected