Interface with the Git CLI using JavaScript.
npm i git-cli-api
import { git } from "git-cli-api";
git.cloneSync(
"https://github.com/voidvoxel/limited-queue.git"
);
import { git } from "git-cli-api";
async function main () {
await git.clone(
"https://github.com/voidvoxel/limited-queue.git"
);
}
main();
import { git } from "git-cli-api";
git.cloneSync(
"https://github.com/voidvoxel/limited-queue.git",
"example"
);
import { git } from "git-cli-api";
git.cloneSync(
"https://github.com/voidvoxel/limited-queue.git",
"limited-queue",
{
cwd: "./example-dir"
}
);