@begit/core
v0.0.19
Published
Blazingly fast tool for cloning git repositories, with no reliance on local `git`, or `tar` installs
Downloads
31
Readme
Begit
Cloning to a directory
import { downloadRepo } from "@begit/core";
await downloadRepo({
repo: {
owner: "Tommypop2",
name: "begit",
branch: undefined,
subdir: undefined,
},
"cool_project",
});
The code above downloads this repository into a folder named cool_project
.
Alternatively, downloadAndExtract
could be used in place of downloadRepo
to opt out of automatically attempting to handle errors