MCPcopy Create free account
hub / github.com/nodejs/undici / createWritable

Function createWritable

test/utils/stream.js:14–24  ·  view source on GitHub ↗
(target)

Source from the content-addressed store, hash-verified

12}
13
14function createWritable (target) {
15 return new Writable({
16 write (chunk, _, callback) {
17 target.push(chunk.toString())
18 callback()
19 },
20 final (callback) {
21 callback()
22 }
23 })
24}
25
26class Source {
27 constructor (data) {

Callers 2

redirect-stream.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected