Module

std/io/copy_n.ts>copyN

The Deno Standard Library
Go to Latest
function copyN
Deprecated
Deprecated

(will be removed after 1.0.0) Use the Web Streams API instead.

import { copyN } from "https://dotland.deno.dev/std@0.223.0/io/copy_n.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>