{"_id":"git-config-path","maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"keywords":["config","git","gitconfig","global","path","resolve"],"dist-tags":{"latest":"2.0.0"},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"description":"Resolve the path to the user's local or global .gitconfig.","readme":"# git-config-path [![NPM version](https://img.shields.io/npm/v/git-config-path.svg?style=flat)](https://www.npmjs.com/package/git-config-path) [![NPM monthly downloads](https://img.shields.io/npm/dm/git-config-path.svg?style=flat)](https://npmjs.org/package/git-config-path) [![NPM total downloads](https://img.shields.io/npm/dt/git-config-path.svg?style=flat)](https://npmjs.org/package/git-config-path) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/git-config-path.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/git-config-path)\n\n> Resolve the path to the user's local or global .gitconfig.\n\nPlease consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save git-config-path\n```\n\n## Usage\n\nAutomatically gets the nearest `.git` config path, starting with the current working directory, then looking in the user's `home` directory.\n\n```js\nvar gitConfigPath = require('git-config-path')();\n//=> '/Users/jonschlinkert/dev/git-config-path/.git/config'\n```\n\nTo force `git-config-path` to only look for a global config path, pass `global`:\n\n```js\nvar gitConfigPath = require('git-config-path')('global');\n//=> '/Users/jonschlinkert/.gitconfig'\n```\n\n## About\n\n<details>\n<summary><strong>Contributing</strong></summary>\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n</details>\n\n<details>\n<summary><strong>Running Tests</strong></summary>\n\nRunning and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:\n\n```sh\n$ npm install && npm test\n```\n\n</details>\n\n<details>\n<summary><strong>Building docs</strong></summary>\n\n_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_\n\nTo generate the readme, run the following command:\n\n```sh\n$ npm install -g verbose/verb#dev verb-generate-readme && verb\n```\n\n</details>\n\n### Related projects\n\nYou might also be interested in these projects:\n\n* [git-branch](https://www.npmjs.com/package/git-branch): Get the current branch from the local git repository. | [homepage](https://github.com/jonschlinkert/git-branch \"Get the current branch from the local git repository.\")\n* [git-repo-name](https://www.npmjs.com/package/git-repo-name): Get the repository name from the git remote origin URL. | [homepage](https://github.com/jonschlinkert/git-repo-name \"Get the repository name from the git remote origin URL.\")\n* [git-user-name](https://www.npmjs.com/package/git-user-name): Get a user's name from git config at the project or global scope, depending on… [more](https://github.com/jonschlinkert/git-user-name) | [homepage](https://github.com/jonschlinkert/git-user-name \"Get a user's name from git config at the project or global scope, depending on what git uses in the current context.\")\n* [git-username](https://www.npmjs.com/package/git-username): Get the username (or 'owner' name) from a git/GitHub remote origin URL. | [homepage](https://github.com/jonschlinkert/git-username \"Get the username (or 'owner' name) from a git/GitHub remote origin URL.\")\n* [is-git-url](https://www.npmjs.com/package/is-git-url): Regex to validate that a URL is a git url. | [homepage](https://github.com/jonschlinkert/is-git-url \"Regex to validate that a URL is a git url.\")\n* [parse-git-config](https://www.npmjs.com/package/parse-git-config): Parse `.git/config` into a JavaScript object. sync or async. | [homepage](https://github.com/jonschlinkert/parse-git-config \"Parse `.git/config` into a JavaScript object. sync or async.\")\n\n### Author\n\n**Jon Schlinkert**\n\n* [GitHub Profile](https://github.com/jonschlinkert)\n* [Twitter Profile](https://twitter.com/jonschlinkert)\n* [LinkedIn Profile](https://linkedin.com/in/jonschlinkert)\n\n### License\n\nCopyright © 2018, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT License](LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.8.0, on November 18, 2018._","repository":{"type":"git","url":"git+https://github.com/jonschlinkert/git-config-path.git"},"bugs":{"url":"https://github.com/jonschlinkert/git-config-path/issues"},"license":"MIT","versions":{"2.0.0":{"name":"git-config-path","description":"Resolve the path to the user's local or global .gitconfig.","version":"2.0.0","homepage":"https://github.com/jonschlinkert/git-config-path","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/git-config-path.git"},"bugs":{"url":"https://github.com/jonschlinkert/git-config-path/issues"},"license":"MIT","main":"index.js","engines":{"node":">=4"},"scripts":{"test":"mocha"},"devDependencies":{"gulp-format-md":"^2.0.0","mocha":"^5.2.0"},"keywords":["config","git","gitconfig","global","path","resolve"],"verb":{"run":true,"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["git-branch","git-repo-name","git-user-name","git-username","is-git-url","parse-git-config"]},"lint":{"reflinks":true}},"gitHead":"d9988505261fd3facecad4edeba8788f3a5a882f","_id":"git-config-path@2.0.0","_npmVersion":"6.4.1","_nodeVersion":"11.1.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"dist":{"integrity":"sha512-qc8h1KIQbJpp+241id3GuAtkdyJ+IK+LIVtkiFTRKRrmddDzs3SI9CvP1QYmWBFvm1I/PWRwj//of8bgAc0ltA==","shasum":"62633d61af63af4405a5024efd325762f58a181b","tarball":"https://nexus.nspop.dk/nexus/repository/nsp-npm/git-config-path/-/git-config-path-2.0.0.tgz","fileCount":4,"unpackedSize":7458,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb8RSmCRA9TVsSAnZWagAAmqgP/1U63mI2EDXFizljtcq8\nQQnIw8k5C1VeJec2X3UkGM+1eJQkhzNQac4kGsgTuxh9IkESyUQy1VHkdx9o\nSQvM5LrL7HvZBcMwQlDs9I6hEX+3aht3LULnTX7PSN0njsy+gwlnqhazJXYT\nXSbI58ZZ39t6iReQOJKnUa/ypTTIiXBQu5gsoaqHFYGxCbF1eWXDRTo6Dy83\njAJ7hfMWyQv8xDJtDtVXPLCfPj3m+xLcDhq1JFmFsk2WNP5aYzxpc46xO2VD\n+xoxGX8JfQOCbUBWDmttm+4r0O85abokVAk8AfNvHo2zeI5GAxMuVWCbIi/y\nQFjFiSUjmZd3+zEKWPp65gcDWI4vij/xQkDqxYbnV8gA936DbSlXe7RJ6J/I\nyjr6AWsBL/Sx254f1bEOHcv2m0VdaZnpn31/02lBVkG6ziRApUtz6EMS4Uup\ngqAJuu7FjNXlpi/SbnfAwVyQ9KGZKOAhIR0vWG6qmSiRpbYhx+T64ioiU4rT\nxqYDvL0BV7EjdlBs3Qlz901d0q7O9nfYbx8v3CH/HTgC0kFaD96tow/SyaR2\nd3T38KomASSQednUIvcbPyZbaMJ8pFsS92K/ZdUpGI+YM3oTVtxljpKZmGz+\n8Bf6E1AdCHfG85TrlJVj+VFluQ0WJYbkP0cwFl5vfApOj9QRINw01qI5M47J\nfAmc\r\n=EkiR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFH0AWUPiuW39jzziVprp5DaBXAveadd8EO2RymvWQ47AiEAqSItFR1Beh2M0fFYmbj/UTIlXDw/0QmeCPw0ocD0jjI="}]},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/git-config-path_2.0.0_1542526117485_0.10147688359538187"},"_hasShrinkwrap":false},"0.2.0":{"name":"git-config-path","description":"Resolve the path to the user's global .gitconfig.","version":"0.2.0","homepage":"https://github.com/jonschlinkert/git-config-path","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/git-config-path.git"},"bugs":{"url":"https://github.com/jonschlinkert/git-config-path/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"os-homedir":"^1.0.1"},"devDependencies":{"gulp-format-md":"^0.1.7","mocha":"^2.4.5"},"keywords":["config","git","gitconfig","global","path","resolve"],"verb":{"run":true,"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["parse-git-config"]},"reflinks":["verb"],"lint":{"reflinks":true}},"gitHead":"ef56b6423be3cf03197863c2a30a0b8461a03466","_id":"git-config-path@0.2.0","_shasum":"435c2368da2f62808d3b71b9950c008a7c31eeb3","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.5.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"435c2368da2f62808d3b71b9950c008a7c31eeb3","tarball":"https://nexus.nspop.dk/nexus/repository/nsp-npm/git-config-path/-/git-config-path-0.2.0.tgz","integrity":"sha512-iMd1LH2pkdFidkmu81iVSWfmzLdwb8UP3ckYxSs1ZMfJTv4PTYDK5U8IOgW3qsiW2oB2/sDza2PX376b6agCpQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCu6vqlTmf97T7svCOxHWrKEo2FKpfbooYa5s/K2kXV+gIgD1Rtbyr1tw4lq8uGDxKC5L07mvuorpTRKtt2oAhz/VE="}]},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/git-config-path-0.2.0.tgz_1459240476841_0.12127054901793599"},"directories":{}},"0.2.1":{"name":"git-config-path","description":"Resolve the path to the user's local or global .gitconfig.","version":"0.2.1","homepage":"https://github.com/jonschlinkert/git-config-path","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/git-config-path.git"},"bugs":{"url":"https://github.com/jonschlinkert/git-config-path/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"extend-shallow":"^2.0.1","fs-exists-sync":"^0.1.0","homedir-polyfill":"^1.0.0"},"devDependencies":{"gulp-format-md":"^0.1.7","mocha":"^2.4.5"},"keywords":["config","git","gitconfig","global","path","resolve"],"verb":{"run":true,"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["git-branch","git-repo-name","git-user-name","git-username","is-git-url","parse-git-config"]},"reflinks":["verb"],"lint":{"reflinks":true}},"gitHead":"877d0fab34b9dca699d27501d8b8775167d82300","_id":"git-config-path@0.2.1","_shasum":"aef32cb0a5fe765dde44cbd9a305a2dc21d4baaf","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.7.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"aef32cb0a5fe765dde44cbd9a305a2dc21d4baaf","tarball":"https://nexus.nspop.dk/nexus/repository/nsp-npm/git-config-path/-/git-config-path-0.2.1.tgz","integrity":"sha512-jwFNsMQyTQshhHElkWn3W06OSSzEa/yWb1PnA++bbECHK5MAXi/fqosmePYfH6Ef39Y723Boc24gPaSMLoqLAA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC/xNPgB1/0AmOfy1TOwufBduSsKumCxRKe6egQxt2jNAIhAJTa7QvWT7fFfa0fP1IMuBUwVANPjGwipvRFgzGy0XLV"}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/git-config-path-0.2.1.tgz_1477476158228_0.64217360294424"},"directories":{}},"1.0.0":{"name":"git-config-path","description":"Resolve the path to the user's local or global .gitconfig.","version":"1.0.0","homepage":"https://github.com/jonschlinkert/git-config-path","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/git-config-path.git"},"bugs":{"url":"https://github.com/jonschlinkert/git-config-path/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"extend-shallow":"^2.0.1","fs-exists-sync":"^0.1.0","homedir-polyfill":"^1.0.0"},"devDependencies":{"gulp-format-md":"^0.1.7","mocha":"^2.4.5"},"keywords":["config","git","gitconfig","global","path","resolve"],"verb":{"run":true,"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["git-branch","git-repo-name","git-user-name","git-username","is-git-url","parse-git-config"]},"reflinks":["verb"],"lint":{"reflinks":true}},"gitHead":"2a8568778104bc023edda15e0cb323b4641fe8b4","_id":"git-config-path@1.0.0","_shasum":"65fc2c87ed406a93f23605c65b4a0c3b8061e517","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.7.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"65fc2c87ed406a93f23605c65b4a0c3b8061e517","tarball":"https://nexus.nspop.dk/nexus/repository/nsp-npm/git-config-path/-/git-config-path-1.0.0.tgz","integrity":"sha512-zM4Z2XW0OUWa47lx+cDEISBrdtoPvmpnWxyIq9pxi+iyIAKB8ymORRBSVvG5jPacB5O+KCeGlCDHnuksTtPvpw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIG1Mis/ISt3cUl2Y/Xiucj3/4JMtVi9m5LmzwBBxxjOxAiEA9dkQ9QMOsg5ZVswCLsE9430RMhYwmtmbr3KQucaqx8Q="}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/git-config-path-1.0.0.tgz_1477476185840_0.11836001160554588"},"directories":{}},"1.0.1":{"name":"git-config-path","description":"Resolve the path to the user's local or global .gitconfig.","version":"1.0.1","homepage":"https://github.com/jonschlinkert/git-config-path","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/git-config-path.git"},"bugs":{"url":"https://github.com/jonschlinkert/git-config-path/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"extend-shallow":"^2.0.1","fs-exists-sync":"^0.1.0","homedir-polyfill":"^1.0.0"},"devDependencies":{"gulp-format-md":"^0.1.7","mocha":"^2.4.5"},"keywords":["config","git","gitconfig","global","path","resolve"],"verb":{"run":true,"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["git-branch","git-repo-name","git-user-name","git-username","is-git-url","parse-git-config"]},"reflinks":["verb"],"lint":{"reflinks":true}},"gitHead":"5bead21efb4a31329f164240dc828c0b0cdfe5e0","_id":"git-config-path@1.0.1","_shasum":"6d33f7ed63db0d0e118131503bab3aca47d54664","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.7.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"6d33f7ed63db0d0e118131503bab3aca47d54664","tarball":"https://nexus.nspop.dk/nexus/repository/nsp-npm/git-config-path/-/git-config-path-1.0.1.tgz","integrity":"sha512-KcJ2dlrrP5DbBnYIZ2nlikALfRhKzNSX0stvv3ImJ+fvC4hXKoV+U+74SV0upg+jlQZbrtQzc0bu6/Zh+7aQbg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDj7/YkMFfATbW5j6SwC09wPWdDlrg8OGhaKtWDUlkBAQIhAI6hNp6P4BtkMPGlOxTsyLpn7Fcayj+OcNbbj/b5vEpi"}]},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/git-config-path-1.0.1.tgz_1477477301819_0.49668524926528335"},"directories":{}},"0.1.0":{"name":"git-config-path","description":"Resolve the path to the user's global .gitconfig.","version":"0.1.0","homepage":"https://github.com/jonschlinkert/git-config-path","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/git-config-path.git"},"bugs":{"url":"https://github.com/jonschlinkert/git-config-path/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/git-config-path/blob/master/LICENSE"},"files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"devDependencies":{"mocha":"*","should":"*"},"keywords":["config","git","gitconfig","global","path","resolve"],"_id":"git-config-path@0.1.0","_shasum":"a34f7dd77f61b84b0c6ea9b21d88a35908cd2951","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"a34f7dd77f61b84b0c6ea9b21d88a35908cd2951","tarball":"https://nexus.nspop.dk/nexus/repository/nsp-npm/git-config-path/-/git-config-path-0.1.0.tgz","integrity":"sha512-nyJBiTw3maPqTrznUdEpRvnVHva1p96xSsgcWSkIub3kkmb2QUoj+FuCRWaJwwdXHUe2atSFZfY6xvnTEd71oA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHZrtDa2BoBSekkaWIO9+l4ywgqqb6tnSd/yilQPEIpUAiBFE6WZHtdrO83sInz1LvzLlV7dReOIMtZxWv0gJ2F+lw=="}]},"directories":{}}},"name":"git-config-path","time":{"2.0.0":"2018-11-18T07:28:37.611Z","created":"2015-03-04T19:36:05.120Z","modified":"2025-05-07T15:10:39.678Z","0.2.0":"2016-03-29T08:34:38.230Z","0.2.1":"2016-10-26T10:02:40.139Z","1.0.0":"2016-10-26T10:03:07.733Z","1.0.1":"2016-10-26T10:21:43.694Z","0.1.0":"2015-03-04T19:36:05.120Z"},"readmeFilename":"README.md","homepage":"https://github.com/jonschlinkert/git-config-path"}