Skip to content

Instantly share code, notes, and snippets.

Working Hard Ya !

Sóstenes Apollo sostenesapollo

Working Hard Ya !
View GitHub Profile
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: `${owner.toLowerCase()}/${repo.toLowerCase()}/tarball/${branch}?access_token=${accessToken}`,
headers: {
'Accept': 'application/vnd.github.v3.raw',