MCPcopy Create free account
hub / github.com/nodejs/node / #write

Method #write

deps/npm/lib/utils/display.js:257–261  ·  view source on GitHub ↗
(stream, options, ...args)

Source from the content-addressed store, hash-verified

255
256 // Write formatted and (non-)colorized output to streams
257 #write (stream, options, ...args) {
258 const colors = stream === this.#stdout ? this.#stdoutColor : this.#stderrColor
259 const value = formatWithOptions({ colors, ...options }, ...args)
260 this.#progress.write(() => stream.write(value))
261 }
262
263 // HANDLERS
264

Callers 3

#writeOutputMethod · 0.95
#writeLogMethod · 0.95
writeMethod · 0.45

Calls 2

formatWithOptionsFunction · 0.70
writeMethod · 0.45

Tested by

no test coverage detected