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

Method use

scripts/bundle-and-gitignore-deps.js:97–101  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

95 }
96
97 use () {
98 const segment = this.#segments.shift()
99 this.#usedSegments.push(segment)
100 return segment
101 }
102
103 allowContents ({ use = true, isDirectory = true } = {}) {
104 if (use) {

Callers 6

allowContentsMethod · 0.95
allowMethod · 0.95
gatherAllowsFunction · 0.95
getPrBodyFunction · 0.80
transformManFunction · 0.80
transformHTMLFunction · 0.80

Calls 1

pushMethod · 0.80

Tested by

no test coverage detected