UNPKG

github-folder-tree

Version:

github-folder-tree is a React custom hook that allows you to fetch and process the contents of a GitHub folder. It retrieves information about the files and subfolders in the specified folder, including their names, file types, download URLs, SHA hashes,

11 lines (10 loc) 186 B
export interface RepoFile { url: string; name: string; file_type: string; download_url: string; sha: string; size: string; path: string; type?: string; }