Socket
Socket
Sign inDemoInstall

is-git

Package Overview
Dependencies
1
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    is-git

check if dir is directory or not


Version published
Weekly downloads
2
increased by100%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

is-git NPM version Build Status

check if dir is git directory or not

Install

$ npm install --save is-git

Example

JavaScript

var isGit = require('is-git');
isGit("/path/folder"); // or false

isGit("*"); //true or false

isGit(); //true or false

Command Line reference

$ npm install --g git-scope-config
$ is-git --path path/to/git/folder

Methods

var isGit = require('is-git');
isGit("/path/folder"); // or false

isGit("*"); //true or false

isGit(); //true or false

isGit([path], cb)

Check if current folder is git folder or not

Run Test

npm test

Contribute or Report Issue

For bugs and feature requests, please create an issue.

License

MIT © Yashprit

Keywords

FAQs

Last updated on 11 Jun 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc