New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

get-git-config

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

get-git-config

Parses the .git/config file to extract information like remotes and branches

latest
npmnpm
Version
0.0.4
Version published
Maintainers
1
Created
Source

get-git-config

Parses the .git/config file to extract information like remotes and branches

Does not require the git command installed, searches the git config on parent directories and throws if does not find any

Usage

npm i get-git-config
import { getGitConfig, getGitConfigSync } from 'get-git-config'

getGitConfig().then(console.log)

// get the current origin url
console.log(getGitConfigSync().remote.origin.url)

FAQs

Package last updated on 01 Aug 2020

Did you know?

Socket

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