@nodesecure/github
Version:
Download repository from github
18 lines • 606 B
TypeScript
import { type DownloadOptions, type DownloadResult } from "./download.js";
export interface DownloadExtractOptions extends DownloadOptions {
/**
* Remove the tar.gz archive after a succesfull extraction
*
* @default true
*/
removeArchive?: boolean;
}
/**
* @example
* const { location } = await github.downloadAndExtract("NodeSecure.utils", {
* removeArchive: false
* });
* console.log(location);
*/
export declare function downloadAndExtract(repository: string, options?: DownloadExtractOptions): Promise<DownloadResult>;
//# sourceMappingURL=downloadAndExtract.d.ts.map