import { Writer } from '../Exporters' ; /**
 * Simple writer that just writes to memory
 */ export class BufferWriter implements Writer { private buffer : string [ ] = [ ] ; public async init ( ) { } public async write ( data ) { this . buffer . push ( data ) ; } public async close ( err ? ) { } public toString ( ) { return this . buffer . join ( "" ) ; } }