Module

x/dax/src/deps.ts>BufReader#readString

Cross-platform shell tools for Deno and Node.js inspired by zx.
Very Popular
Latest
method BufReader.prototype.readString
import { BufReader } from "https://dotland.deno.dev/x/dax@0.39.2/src/deps.ts";

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 !== null 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>