Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/msgpack_rpc/deps.ts>io.BufReader#readString

🦕 Deno module to support msgpack-rpc
Go to Latest
method io.BufReader.prototype.readString
Re-export
import { io } from "https://deno.land/x/msgpack_rpc@v3.1.6/deps.ts";
const { BufReader } = io;

readString() reads until the first occurrence of delim in the input, returning a string containing the data up to and including the delimiter. If ReadString encounters an error before finding a delimiter, it returns the data read before the error and the error itself (often null). ReadString returns err != nil if and only if the returned data does not end in delim. For simple uses, a Scanner may be more convenient.

Parameters

delim: string

Returns

Promise<string | null>