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

x/frugal/dep/std/io.ts>copyN

A frugal web framework
Go to Latest
function copyN
import { copyN } from "https://deno.land/x/frugal@0.3.0/dep/std/io.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>