UEA-Prodem
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
import { Writable } from "node:stream";
|
||||
export class Collector extends Writable {
|
||||
bufferedBytes = [];
|
||||
_write(chunk, encoding, callback) {
|
||||
this.bufferedBytes.push(chunk);
|
||||
callback();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user