Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    packagegitconfigpublic

    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' }
      */
     
     
     
    });
     
     

    install

    npm i packagegitconfig

    Downloadsweekly downloads

    5

    version

    1.0.0

    license

    MIT

    repository

    github.com

    last publish

    collaborators

    • avatar