Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
method BufWriter.prototype.reset
import { BufWriter } from "https://deno.land/std@0.188.0/io/buf_writer.ts";

Discards any unflushed buffered data, clears any error, and resets buffer to write its output to w.