Socket
Socket
Sign inDemoInstall

check-git

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    check-git

determines if a git repository exists within a directory


Version published
Weekly downloads
184
increased by162.86%
Maintainers
1
Install size
2.44 kB
Created
Weekly downloads
 

Readme

Source

check-git

npm version npm

Determines if a git repository exists within a directory

Getting Started

Prerequisites

For this project you need Node installed on your machine with Npm or Yarn

Installing

Open a terminal and type, inside the directory:

npm i check-git
# OR
yarn add check-git

Usage

if(checkGit(process.cwd())) {
  console.log('Yes dude, there is a git repository')
} else {
  console.log('Sorry dude, there is no git repository is this folder')
}

Built with ❤️ using:

  • Node.js - JavaScript runtime built on Chrome's V8 JavaScript engine.

Contributing

Pull Requests for adding features ⇄ and ★ are welcome 😎

Keywords

FAQs

Last updated on 14 Jul 2019

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