mnm-github-repo-downloader
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

GitHub Clone Repo

Simple library to download github repo without git.

Install

$ npm install github-clone-repo

Example

demo.mjs

import clone from "github-clone-repo";

const success = await clone({
    owner: "sample-name",
    repository: "sample-app",
    branch: "master",
    outPath: "./output",
    headerOptions : {
        Authorization : `Bearer {github-token}`
    }
})

console.log(success ? "Success!" : "Failed :(");

CommonJS

demo.cjs

const clone = (...args) => import("github-clone-repo").then(x => x.default(...args));

clone({
    owner: "sample-name",
    repository: "sample-app",
    branch: "master",
    outPath: "./output"
}).then(success => {
    console.log(success ? "Success!" : "Failed :(");
});

Package Sidebar

Install

npm i mnm-github-repo-downloader

Weekly Downloads

2

Version

1.0.1

License

ISC

Unpacked Size

3.94 kB

Total Files

6

Last publish

Collaborators

  • mmichaelnorward