Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/proc/legacy/deps.ts>copyN

A better way to work with processes in Deno.
Go to Latest
function copyN
import { copyN } from "https://deno.land/x/proc@0.20.36/legacy/deps.ts";

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

Parameters

Reader

dest: Writer

Writer

size: number

Read size

Returns

Promise<number>