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

x/dax/src/request.ts>RequestResponse#pipeToPath

Cross-platform shell tools for Deno and Node.js inspired by zx.
Extremely Popular
Latest
method RequestResponse.prototype.pipeToPath
import { RequestResponse } from "https://deno.land/x/dax@0.39.2/src/request.ts";

Pipes the response body to a file.

Returns

Promise<Path>

The path reference of the downloaded file

Pipes the response body to a file.

Parameters

optional
path:
| string
| URL
| Path
| undefined
optional
options: Deno.WriteFileOptions

Returns

Promise<Path>

The path reference of the downloaded file