https://github.com/justjavac/deno_is_git
Whether the filepath is a git repository.
https://github.com/justjavac/deno_is_git
deno deno-mod deno-module deno-tools git
Last synced: 8 months ago
JSON representation
Whether the filepath is a git repository.
- Host: GitHub
- URL: https://github.com/justjavac/deno_is_git
- Owner: justjavac
- License: mit
- Created: 2020-08-24T05:12:12.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-08-24T10:49:29.000Z (almost 6 years ago)
- Last Synced: 2025-04-07T18:03:51.474Z (about 1 year ago)
- Topics: deno, deno-mod, deno-module, deno-tools, git
- Language: TypeScript
- Homepage:
- Size: 3.91 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# deno_is_git
[](https://github.com/justjavac/deno_is_git/releases)
[](https://github.com/justjavac/deno_is_git/actions)
[](https://github.com/justjavac/deno_is_git/blob/master/LICENSE)
Whether the filepath is a **git repository**.
## Usage
```ts
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
```bash
deno run --allow-read https://deno.land/x/is_git/example.ts
```
## License
[deno_is_git](https://github.com/justjavac/deno_is_git) is released under the MIT License. See the bundled [LICENSE](./LICENSE) file for details.