mnm-github-repo-downloader
v1.0.2
Published
Github Repository downloader and unzipper.
Downloads
5
Maintainers
Readme
GitHub Clone Repo
Simple library to download github repo without git.
Install
$ npm install mnm-github-repo-downloader
Example
demo.mjs
import cloneRepo from "mnm-github-repo-downloader";
(async function(){
let repositoryCloned = await cloneRepo({
owner: "sample-name",
repository: "sample-app",
branch: "master",
outPath: "./output",
headerOptions : {
Authorization : `Bearer {github-token}`
}
});
console.log(success ? "Success!" : "Failed :(");
}());
CommonJS
demo.cjs
const cloneRepo = require("mnm-github-repo-downloader");
(async function(){
let repositoryCloned = await cloneRepo({
owner: "sample-name",
repository: "sample-app",
branch: "master",
outPath: "./output",
headerOptions : {
Authorization : `Bearer {github-token}`
}
});
console.log(success ? "Success!" : "Failed :(");
}())