Attributes
Very Popular
Repository
Current version released
4 years ago
Dependencies
std
Versions
deno_is_git
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.