UNPKG

@mieweb/wikigdrive

Version:

Google Drive to MarkDown synchronization

22 lines (15 loc) 319 B
import {Writable} from 'node:stream'; export class StringWritable extends Writable { private content: string; constructor() { super(); this.content = ''; } _write(chunk, encoding, callback) { this.content += chunk.toString(); callback(); } getString() { return this.content; } }