Skip to main content
Module

std/io/readers.ts>LimitedReader

Deno standard library
Go to Latest
variable LimitedReader
Deprecated
Deprecated

(will be removed after 0.170.0) Import from std/io/limited_reader.ts instead

A LimitedReader reads from reader but limits the amount of data returned to just limit bytes. Each call to read updates limit to reflect the new amount remaining. read returns null when limit <= 0 or when the underlying reader returns null.

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