working rss feed to nostr publish
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
import { Writable } from "stream";
|
||||
export class Collector extends Writable {
|
||||
constructor() {
|
||||
super(...arguments);
|
||||
this.bufferedBytes = [];
|
||||
}
|
||||
_write(chunk, encoding, callback) {
|
||||
this.bufferedBytes.push(chunk);
|
||||
callback();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user