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

x/dax/mod.ts>RequestBuilder#pipeToPath

Cross platform shell tools for Deno inspired by zx.
Very Popular
Go to Latest
method RequestBuilder.prototype.pipeToPath
Re-export
import { RequestBuilder } from "https://deno.land/x/dax@0.31.1/mod.ts";

Pipes the response body to a file.

Returns

Promise<PathRef>

The path reference of the downloaded file.

Pipes the response body to a file.

Parameters

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

Returns

Promise<PathRef>

The path reference of the downloaded file.