github-clone-repo
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: "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 :(");
});

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.11latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.11
1.0.01

Package Sidebar

Install

npm i github-clone-repo

Weekly Downloads

2

Version

1.0.1

License

MIT

Unpacked Size

3.8 kB

Total Files

7

Last publish

Collaborators

  • snowflake7