@smash-sdk/downloader
Version:
<p align="center"> <a href="https://fromsmash.com/"><img src="https://developer.fromsmash.com/LOGO_SMASH_API.png" align="center" width="135" alt="Send big files"/></a> <h1 align="center">SmashDownloaderJS - Download library <br>powered by the Smash AP
17 lines (16 loc) • 524 B
TypeScript
import { CustomEventEmitter } from "../core/customEventEmitter";
export * from "../globals/constant";
import { DownloaderParameters } from "../SmashDownloader";
export declare class Download extends CustomEventEmitter {
fileName?: string;
size: number;
downloadedSize: number;
private config;
constructor(config: DownloaderParameters & {
downloadUrl: string;
});
download(): Promise<void>;
private createReadStream;
private createTransformStream;
private createWriteStream;
}