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

Method constructor

lib/utils/display.js:185–194  ·  view source on GitHub ↗
({ stdout, stderr })

Source from the content-addressed store, hash-verified

183 #seenNotices = new Set()
184
185 constructor ({ stdout, stderr }) {
186 this.#stdout = setBlocking(stdout)
187 this.#stderr = setBlocking(stderr)
188
189 // Handlers are set immediately so they can buffer all events
190 process.on('log', this.#logHandler)
191 process.on('output', this.#outputHandler)
192 process.on('input', this.#inputHandler)
193 this.#progress = new Progress({ stream: stderr })
194 }
195
196 off () {
197 process.off('log', this.#logHandler)

Callers

nothing calls this directly

Calls 2

setBlockingFunction · 0.85
onMethod · 0.45

Tested by

no test coverage detected