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

std/io/copy.ts

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
import * as mod from "https://deno.land/std@0.213.0/io/copy.ts";

Functions

Copies from src to dst until either EOF (null) is read from src or an error occurs. It resolves to the number of bytes copied or rejects with the first error encountered while copying.