1.0.1 • Published 2 years ago

github-clone-repo v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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: "DevSnowflake",
    repository: "minichat",
    branch: "main",
    outPath: "./output"
})

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

CommonJS

demo.cjs

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

clone({
    owner: "DevSnowflake",
    repository: "minichat",
    branch: "main",
    outPath: "./output"
}).then(success => {
    console.log(success ? "Success!" : "Failed :(");
});