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

std/io/mod.ts>StringReader

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
class StringReader
implements Reader
import { StringReader } from "https://deno.land/std@0.39.0/io/mod.ts";

Reader utility for strings

Constructors

new
StringReader(s: string)

Properties

private
buf: Uint8Array
private
offs: number

Methods

read(p: Uint8Array): Promise<number | Deno.EOF>