MCPcopy Create free account
hub / github.com/npm/cli / tree

Function tree

workspaces/arborist/test/unreviewed-scripts.js:16–18  ·  view source on GitHub ↗
(nodes)

Source from the content-addressed store, hash-verified

14
15// Minimal tree fixture for the walk.
16const tree = (nodes) => ({
17 inventory: new Map(nodes.map((n, i) => [`node_modules/${n.name || `n${i}`}`, n])),
18})
19
20// Registry-shaped node so the real script-allowed/install-scripts helpers
21// behave deterministically (registry tarballs skip `prepare`, and the

Callers 2

printHumanMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected