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

x/deno/std/io/mod.ts>copyN

A modern runtime for JavaScript and TypeScript.
Go to Latest
function copyN
import { copyN } from "https://deno.land/x/deno@v0.28.0/std/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>