Bakhtina Sofya b84cb877be 1st comm | 1 mēnesi atpakaļ | |
---|---|---|
.. | ||
LICENSE | 1 mēnesi atpakaļ | |
README.md | 1 mēnesi atpakaļ | |
index.js | 1 mēnesi atpakaļ | |
package.json | 1 mēnesi atpakaļ |
Resolve the path to the user's local or global .gitconfig.
Install with npm:
$ npm install --save git-config-path
Automatically gets the nearest .git
config path, starting with the current working directory, then looking in the user's home
directory.
var gitConfigPath = require('git-config-path')();
//=> '/Users/jonschlinkert/dev/git-config-path/.git/config'
To force git-config-path
to only look for a global config path, pass global
:
var gitConfigPath = require('git-config-path')('global');
//=> '/Users/jonschlinkert/.gitconfig'
.git/config
into a JavaScript object. sync or async. | homepagePull requests and stars are always welcome. For bugs and feature requests, please create an issue.
(This document was generated by verb-generate-readme (a verb generator), please don't edit the readme directly. Any changes to the readme must be made in .verb.md.)
To generate the readme and API documentation with verb:
$ npm install -g verb verb-generate-readme && verb
Install dev dependencies:
$ npm install -d && npm test
Jon Schlinkert
Copyright © 2016, Jon Schlinkert. Released under the MIT license.
This file was generated by verb-generate-readme, v0.2.0, on October 26, 2016.