JavaScript Snippet - getGitContents(...)

added by JavaScript Kicks
8/26/2019 7:05:52 AM

161 Views

Have you ever wanted to get the contents of a GitHub file via JavaScript? If so I wrote the following function which gives you the ability to get the contents of a file or of a directory: Here is an example of using the above function: And here is another example which shows how to specify the branch name: Feel free to use this function in your projects.


0 comments