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

x/deno/std/io/readers.ts>StringReader

A modern runtime for JavaScript and TypeScript.
Go to Latest
class StringReader
implements Reader
import { StringReader } from "https://deno.land/x/deno@v0.23.0/std/io/readers.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>