Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/deno/tools/release/deps.ts>dax.RequestResult#pipeToPath

A modern runtime for JavaScript and TypeScript.
Go to Latest
method dax.RequestResult.prototype.pipeToPath
import { dax } from "https://deno.land/x/deno@v1.39.3/tools/release/deps.ts";
const { RequestResult } = dax;

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