gitly
Version:
An API to download and/or extract git repositories
15 lines (14 loc) • 396 B
TypeScript
import type GitlyOptions from '../interfaces/options';
/**
* Download the tar file from the repository
* and store it in a temporary directory
* @param repository The repository to download
*
* @example
* ```js
* // ..
* const path = await download('iwatakeshi/git-copy')
* // ...
* ```
*/
export default function download(repository: string, options?: GitlyOptions): Promise<string>;