Simple library to download github repo without git.
$ npm install github-clone-repo
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 :(");
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 :(");
});