Socket
Book a DemoInstallSign in
Socket

fetch-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

fetch-git-config

fetch user's local or global .gitconfig

1.1.1
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

#fetch-git-config

fetch user's local or global .gitconfig

Install

Node.js 4 or higher

$ npm install fetch-git-config --save

Usage

fetch current working directory

var fetch = require('fetch-git-config');

// async
fetch().then(function(data) {
  // do something
});

// sync
var data = fetch.sync();
// do something

fetch global

// async
fetch('global').then(function(data) {
  // do something
});

// sync
var data = fetch.sync('global');

fetch custom path and cwd

// async
fetch({cwd: 'foo', path: '.git/config'}).then(function(data) {
 // do something
});

// sync
var data = fetch.sync({cwd: 'foo', path: '.git/config'});

Keywords

fetch

FAQs

Package last updated on 29 Sep 2016

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.