{"_id":"git-config","_rev":"903807","name":"git-config","description":"A simple way to extract out all the contents of a .gitconfig file and return as JSON","dist-tags":{"latest":"0.0.7"},"maintainers":[{"name":"eugeneware","email":"eugene@noblesamurai.com"}],"time":{"modified":"2021-09-20T13:46:32.000Z","created":"2013-09-11T13:28:04.705Z","0.0.7":"2015-06-13T05:26:38.111Z","0.0.6":"2014-02-26T01:31:44.574Z","0.0.5":"2014-02-26T01:27:29.534Z","0.0.4":"2014-02-25T23:49:36.475Z","0.0.3":"2013-09-11T14:51:53.821Z","0.0.2":"2013-09-11T13:35:56.276Z","0.0.1":"2013-09-11T13:28:04.705Z"},"users":{},"author":{"name":"Eugene Ware","email":"eugene@noblesamurai.com"},"repository":{"type":"git","url":"https://github.com/eugeneware/git-config"},"versions":{"0.0.7":{"name":"git-config","version":"0.0.7","description":"A simple way to extract out all the contents of a .gitconfig file and return as JSON","main":"index.js","scripts":{"test":"grunt ci"},"repository":{"type":"git","url":"https://github.com/eugeneware/git-config"},"keywords":[],"author":{"name":"Eugene Ware","email":"eugene@noblesamurai.com"},"license":"BSD-3-Clause","dependencies":{"iniparser":"~1.0.5"},"devDependencies":{"expect.js":"^0.3.1","grunt":"~0.4.1","grunt-cli":"~0.1.9","grunt-complexity":"^0.3.0","grunt-contrib-jshint":"^0.11.2","grunt-contrib-watch":"^0.6.1","grunt-mocha-cli":"^1.13.0"},"gitHead":"5d735aa87e35142592c5b7841b0d2f07b6725066","bugs":{"url":"https://github.com/eugeneware/git-config/issues"},"homepage":"https://github.com/eugeneware/git-config","_id":"git-config@0.0.7","_shasum":"a9c8a3ef07a776c3d72261356d8b727b62202b28","_from":".","_npmVersion":"2.4.1","_nodeVersion":"0.10.32","_npmUser":{"name":"eugeneware","email":"eugene@noblesamurai.com"},"maintainers":[{"name":"eugeneware","email":"eugene@noblesamurai.com"}],"dist":{"shasum":"a9c8a3ef07a776c3d72261356d8b727b62202b28","size":3463,"noattachment":false,"key":"/git-config/-/git-config-0.0.7.tgz","tarball":"http://registry.cnpm.dingdandao.com/git-config/download/git-config-0.0.7.tgz"},"directories":{},"publish_time":1434173198111,"_cnpm_publish_time":1434173198111,"_hasShrinkwrap":false},"0.0.6":{"name":"git-config","version":"0.0.6","description":"A simple way to extract out all the contents of a .gitconfig file and return as JSON","main":"index.js","scripts":{"test":"grunt ci"},"repository":{"type":"git","url":"https://github.com/eugeneware/git-config"},"keywords":[],"author":{"name":"Eugene Ware","email":"eugene@noblesamurai.com"},"license":"BSD-3-Clause","dependencies":{"iniparser":"~1.0.5"},"devDependencies":{"expect.js":"~0.2.0","grunt-contrib-jshint":"~0.6.4","grunt-contrib-watch":"~0.5.3","grunt":"~0.4.1","grunt-mocha-cli":"~1.1.0","grunt-complexity":"~0.1.3","grunt-cli":"~0.1.9"},"bugs":{"url":"https://github.com/eugeneware/git-config/issues"},"homepage":"https://github.com/eugeneware/git-config","_id":"git-config@0.0.6","dist":{"shasum":"587da52841521fd9e93a68b0bdb83c1127421561","size":3448,"noattachment":false,"key":"/git-config/-/git-config-0.0.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/git-config/download/git-config-0.0.6.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"eugeneware","email":"eugene@noblesamurai.com"},"maintainers":[{"name":"eugeneware","email":"eugene@noblesamurai.com"}],"directories":{},"publish_time":1393378304574,"_cnpm_publish_time":1393378304574,"_hasShrinkwrap":false},"0.0.5":{"name":"git-config","version":"0.0.5","description":"A simple way to extract out all the contents of a .gitconfig file and return as JSON","main":"index.js","scripts":{"test":"grunt ci"},"repository":{"type":"git","url":"https://github.com/eugeneware/git-config"},"keywords":[],"author":{"name":"Eugene Ware","email":"eugene@noblesamurai.com"},"license":"BSD-3-Clause","dependencies":{"iniparser":"~1.0.5"},"devDependencies":{"expect.js":"~0.2.0","grunt-contrib-jshint":"~0.6.4","grunt-contrib-watch":"~0.5.3","grunt":"~0.4.1","grunt-mocha-cli":"~1.1.0","grunt-complexity":"~0.1.3","grunt-cli":"~0.1.9"},"bugs":{"url":"https://github.com/eugeneware/git-config/issues"},"homepage":"https://github.com/eugeneware/git-config","_id":"git-config@0.0.5","dist":{"shasum":"5b142e983702e0ae3a1df45bc6376720d17017dd","size":3214,"noattachment":false,"key":"/git-config/-/git-config-0.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/git-config/download/git-config-0.0.5.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"eugeneware","email":"eugene@noblesamurai.com"},"maintainers":[{"name":"eugeneware","email":"eugene@noblesamurai.com"}],"directories":{},"publish_time":1393378049534,"_cnpm_publish_time":1393378049534,"_hasShrinkwrap":false},"0.0.4":{"name":"git-config","version":"0.0.4","description":"A simple way to extract out all the contents of a .gitconfig file and return as JSON","main":"index.js","scripts":{"test":"grunt ci"},"repository":{"type":"git","url":"https://github.com/eugeneware/git-config"},"keywords":[],"author":{"name":"Eugene Ware","email":"eugene@noblesamurai.com"},"license":"BSD-3-Clause","dependencies":{"iniparser":"~1.0.5"},"devDependencies":{"expect.js":"~0.2.0","grunt-contrib-jshint":"~0.6.4","grunt-contrib-watch":"~0.5.3","grunt":"~0.4.1","grunt-mocha-cli":"~1.1.0","grunt-complexity":"~0.1.3","grunt-cli":"~0.1.9"},"bugs":{"url":"https://github.com/eugeneware/git-config/issues"},"homepage":"https://github.com/eugeneware/git-config","_id":"git-config@0.0.4","dist":{"shasum":"1771e4642bf3d06fbde2eac20fc95db9bb407976","size":3095,"noattachment":false,"key":"/git-config/-/git-config-0.0.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/git-config/download/git-config-0.0.4.tgz"},"_from":".","_npmVersion":"1.4.3","_npmUser":{"name":"eugeneware","email":"eugene@noblesamurai.com"},"maintainers":[{"name":"eugeneware","email":"eugene@noblesamurai.com"}],"directories":{},"publish_time":1393372176475,"_cnpm_publish_time":1393372176475,"_hasShrinkwrap":false},"0.0.3":{"name":"git-config","version":"0.0.3","description":"A simple way to extract out all the contents of a .gitconfig file and return as JSON","main":"index.js","scripts":{"test":"node_modules/.bin/grunt ci"},"repository":{"type":"git","url":"https://github.com/eugeneware/git-config"},"keywords":[],"author":{"name":"Eugene Ware","email":"eugene@noblesamurai.com"},"license":"BSD-3-Clause","dependencies":{"iniparser":"~1.0.5"},"devDependencies":{"expect.js":"~0.2.0","grunt-contrib-jshint":"~0.6.4","grunt-contrib-watch":"~0.5.3","grunt":"~0.4.1","grunt-mocha-cli":"~1.1.0","grunt-complexity":"~0.1.3","grunt-cli":"~0.1.9"},"readmeFilename":"README.md","bugs":{"url":"https://github.com/eugeneware/git-config/issues"},"_id":"git-config@0.0.3","dist":{"shasum":"4b7e0a130a692e7aac51f71231e72a23f31c13c2","size":3087,"noattachment":false,"key":"/git-config/-/git-config-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/git-config/download/git-config-0.0.3.tgz"},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"eugeneware","email":"eugene@noblesamurai.com"},"maintainers":[{"name":"eugeneware","email":"eugene@noblesamurai.com"}],"directories":{},"publish_time":1378911113821,"_cnpm_publish_time":1378911113821,"_hasShrinkwrap":false},"0.0.2":{"name":"git-config","version":"0.0.2","description":"A simple way to extract out all the contents of a .gitconfig file and return as JSON","main":"index.js","scripts":{"test":"node_modules/.bin/grunt ci"},"repository":{"type":"git","url":"https://github.com/eugeneware/git-config"},"keywords":[],"author":{"name":"Eugene Ware","email":"eugene@noblesamurai.com"},"license":"BSD-3-Clause","dependencies":{"iniparser":"~1.0.5"},"devDependencies":{"expect.js":"~0.2.0","grunt-contrib-jshint":"~0.6.4","grunt-contrib-watch":"~0.5.3","grunt":"~0.4.1","grunt-mocha-cli":"~1.1.0","grunt-complexity":"~0.1.3","grunt-cli":"~0.1.9"},"readmeFilename":"README.md","bugs":{"url":"https://github.com/eugeneware/git-config/issues"},"_id":"git-config@0.0.2","dist":{"shasum":"5dd445e912ed9c2eab3a560a6372008d7be31877","size":3052,"noattachment":false,"key":"/git-config/-/git-config-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/git-config/download/git-config-0.0.2.tgz"},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"eugeneware","email":"eugene@noblesamurai.com"},"maintainers":[{"name":"eugeneware","email":"eugene@noblesamurai.com"}],"directories":{},"publish_time":1378906556276,"_cnpm_publish_time":1378906556276,"_hasShrinkwrap":false},"0.0.1":{"name":"git-config","version":"0.0.1","description":"A simple way to extract out all the contents of a .gitconfig file and return as JSON","main":"index.js","scripts":{"test":"node_modules/.bin/grunt ci"},"repository":{"type":"git","url":"https://github.com/eugeneware/git-config"},"keywords":[],"author":{"name":"Eugene Ware","email":"eugene@noblesamurai.com"},"license":"BSD-3-Clause","dependencies":{"iniparser":"~1.0.5"},"devDependencies":{"expect.js":"~0.2.0","grunt-contrib-jshint":"~0.6.4","grunt-contrib-watch":"~0.5.3","grunt":"~0.4.1","grunt-mocha-cli":"~1.1.0","grunt-complexity":"~0.1.3","grunt-cli":"~0.1.9"},"readmeFilename":"README.md","bugs":{"url":"https://github.com/eugeneware/git-config/issues"},"_id":"git-config@0.0.1","dist":{"shasum":"8604ebea2eb6ce33f598293e2df2ff7d7d28adf8","size":3003,"noattachment":false,"key":"/git-config/-/git-config-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/git-config/download/git-config-0.0.1.tgz"},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"eugeneware","email":"eugene@noblesamurai.com"},"maintainers":[{"name":"eugeneware","email":"eugene@noblesamurai.com"}],"directories":{},"publish_time":1378906084705,"_cnpm_publish_time":1378906084705,"_hasShrinkwrap":false}},"readme":"# git-config\n\nA simple way to extract out all the contents of a .gitconfig file and return as JSON\n\n[![build status](https://secure.travis-ci.org/eugeneware/git-config.png)](http://travis-ci.org/eugeneware/git-config)\n\n## Installation\n\nThis module is installed via npm:\n\n``` bash\n$ npm install git-config\n```\n\n## Example Usage\n\n### Asynchronous\n\n``` js\nvar gitConfig = require('git-config');\ngitConfig(function (err, config) {\n  if (err) return done(err);\n  expect(config.user.name).to.equal('Eugene Ware');\n  expect(config.user.email).to.equal('eugene@noblesamurai.com');\n  expect(config.github.user).to.equal('eugeneware');\n  done();\n});\n```\n\nExplicitly give a gitconfig file:\n\n``` js\nvar gitConfig = require('git-config');\ngitConfig('/my/path/.gitconfig1', function (err, config) {\n  if (err) return done(err);\n  expect(config.user.name).to.equal('Eugene Ware');\n  expect(config.user.email).to.equal('eugene@noblesamurai.com');\n  expect(config.github.user).to.equal('eugeneware');\n  done();\n});\n```\n\n### Synchronous\n\n``` js\nvar gitConfig = require('git-config');\nvar config = gitConfig.sync(); // can pass explit file if you want as well\n```\n","_attachments":{},"homepage":"https://github.com/eugeneware/git-config","bugs":{"url":"https://github.com/eugeneware/git-config/issues"},"license":"BSD-3-Clause"}