@eljs/utils
Version:
Collection of nodejs utility.
15 lines • 495 B
TypeScript
import { type DownloadOptions } from 'download';
/**
* 下载 Npm 压缩包
* @param url Npm 地址
* @param options 选项
*/
export declare function downloadNpmTarball(url: string, options?: DownloadOptions): Promise<string>;
/**
* 下载 Npm 压缩包
* @param url Npm 地址
* @param dest 目标地址
* @param options 选项
*/
export declare function downloadNpmTarball(url: string, dest: string, options?: DownloadOptions): Promise<string>;
//# sourceMappingURL=download.d.ts.map