Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
class LimitedReader
implements Reader
Deprecated
Deprecated

(will be removed after 1.0.0) Use the Web Streams API instead.

import { LimitedReader } from "https://deno.land/std@0.219.1/io/limited_reader.ts";

Constructors

new
LimitedReader(reader: Reader, limit: number)

Methods

read(p: Uint8Array): Promise<number | null>