(data)
| 3 | const { Readable, Writable } = require('node:stream') |
| 4 | |
| 5 | function createReadable (data) { |
| 6 | return new Readable({ |
| 7 | read () { |
| 8 | this.push(Buffer.from(data)) |
| 9 | this.push(null) |
| 10 | } |
| 11 | }) |
| 12 | } |
| 13 | |
| 14 | function createWritable (target) { |
| 15 | return new Writable({ |
no outgoing calls
no test coverage detected