Network

download.mjs

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

Target Style

Target Style

1 exports

const

downloadTemporaryFile

Target Style
export const downloadTemporaryFile = async ({ from, agent, signal, onProgress } = {}) => {

Downloads a remote file into a temporary path.

Target style API. Preferred for new code.

Parameters

  • [options]{ from: string, agent?: import('https').Agent, signal?: AbortSignal, onProgress?: Function }

Returns

Promise<{ statusCode?: number, localPath: string, aborted?: boolean, status?: number, dest?: string }>

Legacy Style

Legacy Style

1 exports

const

download

Legacy Style
export const download = (url, dest, { agent, signal, onProgress } = {}) => {

No description provided.

Legacy API. Kept for older code and not the preferred choice for new code.