Skip to content

Instantly share code, notes, and snippets.

Avatar
⚛️
Working Hard Ya !

Sóstenes Apollo sostenesapollo

⚛️
Working Hard Ya !
View GitHub Profile
@sostenesapollo
sostenesapollo / download.js
Created Jan 24, 2020 — forked from mbejda/download.js
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',