Skip to content

justjavac/deno_is_git

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.