Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:
Debugging

Sóstenes Apollo sostenesapollo

:octocat:
Debugging
View GitHub Profile
@mbejda
mbejda / download.js
Last active Apr 14, 2021
Download Private Github Repo with Node.js Request module
View download.js
var owner = "mbejda";
var repo = "somerepo";
var branch = "master"
var accessToken = "AccessToken";
var options = {
method: "GET",
url: `https://api.github.com/repos/${owner.toLowerCase()}/${repo.toLowerCase()}/tarball/${branch}?access_token=${accessToken}`,
headers: {
'Accept': 'application/vnd.github.v3.raw',