Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

std/io/bufio.ts

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
import * as mod from "https://deno.land/std@0.100.0/io/bufio.ts";

Classes

BufReader implements buffering for a Reader object.

BufWriter implements buffering for an deno.Writer object. If an error occurs writing to a Writer, 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.Writer.

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.

Functions

Read delimited bytes from a Reader.

Read strings line-by-line from a Reader.

Read delimited strings from a Reader.

Interfaces

Result type returned by of BufReader.readLine().