Module

std/io/ioutil.ts>copyN

Deno standard library
Go to Latest
function copyN
import { copyN } from "https://deno.land/std@0.101.0/io/ioutil.ts";

Copy N size at the most. If read size is lesser than N, then returns nread

Parameters

r: Reader

Reader

dest: Writer

Writer

size: number

Read size

Returns

Promise<number>