Skip to main content

deno_is_git

tag Build Status license

Whether the filepath is a git repository.

Usage

import { isGit, isGitSync } from "https://deno.land/x/is_git/mod.ts";

await isGit(); // true or false of Deno.cwd()
await isGit('any/git/repo'); // true or false

isGitSync(); // true or false of Deno.cwd()
isGitSync('any/git/repo'); // true or false

Example

deno run --allow-read https://deno.land/x/is_git/example.ts

License

deno_is_git is released under the MIT License. See the bundled LICENSE file for details.