Skip to content

CesiumLabs/github-clone-repo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simple library to clone github repo without using git

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published