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

std/io/mod.ts>copyN

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

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

Parameters

dest: Writer
r: Reader
size: number

Returns

Promise<number>