Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

is-git-repository

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-git-repository - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

1

build.js

@@ -44,1 +44,2 @@ 'use strict';

exports.default = isGit;
module.exports = exports['default'];

3

package.json
{
"name": "is-git-repository",
"version": "1.1.0",
"version": "1.1.1",
"description": "A tool to check if a specific path is a git repository",

@@ -44,2 +44,3 @@ "main": "build.js",

"babel-cli": "^6.24.0",
"babel-plugin-add-module-exports": "^0.2.1",
"babel-preset-env": "^1.2.2",

@@ -46,0 +47,0 @@ "coveralls": "^2.12.0",

@@ -6,4 +6,7 @@ import { homedir } from 'os';

const isGitRequire = require('./');
test('check if process.cwd() is a git repo', (t) => {
t.true(isGit());
t.true(isGitRequire());
});

@@ -13,2 +16,3 @@

t.false(isGit(homedir()));
t.false(isGitRequire(homedir()));
});

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc