Deprecated
(will be removed after 0.170.0) Import from std/io/buf_writer.ts
instead
BufWriterSync implements buffering for a deno.WriterSync object. If an error occurs writing to a WriterSync, no more data will be accepted and all subsequent writes, and flush(), will return the error. After all data has been written, the client should call the flush() method to guarantee all data has been forwarded to the underlying deno.WriterSync.
import { BufWriterSync } from "https://deno.land/std@0.170.0/io/buffer.ts";