Network

downloadFile.mjs

@mr_ozio/scraper-utils · v2.5.0 · Generated April 21, 2026

Target Style

Target Style

1 exports

const

downloadFile

Target Style
export const downloadFile = async ({ from, to, onProgress, agent, signal, createDirectories = false } = {}) => {

Downloads a remote file into a destination path.

Target style API. Preferred for new code.

Parameters

  • options{ from: string, to: string, onProgress?: Function, agent?: https.Agent, signal?: AbortSignal, createDirectories?: boolean }

Returns

ReturnType<typeof downloadFileToPath>

Legacy Style

Legacy Style

0 exports

No legacy exports in this module.