Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

find the git folder for your package and parse the .git/config file into a useful data structure. also adds the github web url for the repo.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 test
Octocat-spinner-32 .travis.yml
Octocat-spinner-32 README.md
Octocat-spinner-32 index.js
Octocat-spinner-32 package.json
README.md

Build Status

packagegitconfig

find the git folder for your package and parse the .git/config file into a useful data structure. also adds the github web url for the repo.

example

var gitconfig = require('packagegitconfig');

gitconfig('./',function(err,config){
  console.log(config);

  /* prints:
  { core: 
     { repositoryformatversion: '0',
       filemode: true,
       bare: false,
       logallrefupdates: true },
    remote: 
     { origin: 
        { url: 'git@github.com:soldair/node-packagegitconfig.git',
          fetch: '+refs/heads/*:refs/remotes/origin/*' } },
    github: 'https://github.com/soldair/node-packagegitconfig' }
  */



});


Something went wrong with that request. Please try again.