github-clone-repo
v1.0.1
Published
Simple library to clone github repo without using git
Readme
GitHub Clone Repo
Simple library to download github repo without git.
Install
$ npm install github-clone-repoExample
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 :(");
});