|
|
@ -55,7 +55,7 @@ Config object will be something like:
|
|
|
|
|
|
|
|
|
|
|
|
## API
|
|
|
|
## API
|
|
|
|
|
|
|
|
|
|
|
|
### [parse](index.js#L34)
|
|
|
|
### [parse](index.js#L33)
|
|
|
|
|
|
|
|
|
|
|
|
Asynchronously parse a `.git/config` file. If only the callback is passed, the `.git/config` file relative to `process.cwd()` is used.
|
|
|
|
Asynchronously parse a `.git/config` file. If only the callback is passed, the `.git/config` file relative to `process.cwd()` is used.
|
|
|
|
|
|
|
|
|
|
|
@ -74,7 +74,7 @@ parse(function(err, config) {
|
|
|
|
* `cb` **{Function}**: callback function if the first argument is options or cwd.
|
|
|
|
* `cb` **{Function}**: callback function if the first argument is options or cwd.
|
|
|
|
* `returns` **{Object}**
|
|
|
|
* `returns` **{Object}**
|
|
|
|
|
|
|
|
|
|
|
|
### [.sync](index.js#L77)
|
|
|
|
### [.sync](index.js#L71)
|
|
|
|
|
|
|
|
|
|
|
|
Synchronously parse a `.git/config` file. If no arguments are passed, the `.git/config` file relative to `process.cwd()` is used.
|
|
|
|
Synchronously parse a `.git/config` file. If no arguments are passed, the `.git/config` file relative to `process.cwd()` is used.
|
|
|
|
|
|
|
|
|
|
|
@ -89,7 +89,7 @@ var config = parse.sync();
|
|
|
|
* `options` **{Object|String}**: Options with `cwd` or `path`, or the cwd to use.
|
|
|
|
* `options` **{Object|String}**: Options with `cwd` or `path`, or the cwd to use.
|
|
|
|
* `returns` **{Object}**
|
|
|
|
* `returns` **{Object}**
|
|
|
|
|
|
|
|
|
|
|
|
### [.keys](index.js#L117)
|
|
|
|
### [.keys](index.js#L109)
|
|
|
|
|
|
|
|
|
|
|
|
Returns an object with only the properties that had ini-style keys converted to objects (example below).
|
|
|
|
Returns an object with only the properties that had ini-style keys converted to objects (example below).
|
|
|
|
|
|
|
|
|
|
|
@ -198,7 +198,7 @@ Pull requests and stars are always welcome. For bugs and feature requests, [plea
|
|
|
|
|
|
|
|
|
|
|
|
| **Commits** | **Contributor**<br/> |
|
|
|
|
| **Commits** | **Contributor**<br/> |
|
|
|
|
| --- | --- |
|
|
|
|
| --- | --- |
|
|
|
|
| 44 | [jonschlinkert](https://github.com/jonschlinkert) |
|
|
|
|
| 48 | [jonschlinkert](https://github.com/jonschlinkert) |
|
|
|
|
| 1 | [sam3d](https://github.com/sam3d) |
|
|
|
|
| 1 | [sam3d](https://github.com/sam3d) |
|
|
|
|
| 1 | [jsdnxx](https://github.com/jsdnxx) |
|
|
|
|
| 1 | [jsdnxx](https://github.com/jsdnxx) |
|
|
|
|
|
|
|
|
|
|
|
@ -234,4 +234,4 @@ Released under the [MIT license](https://github.com/jonschlinkert/parse-git-conf
|
|
|
|
|
|
|
|
|
|
|
|
***
|
|
|
|
***
|
|
|
|
|
|
|
|
|
|
|
|
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.2.0, on December 08, 2016._
|
|
|
|
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.2.0, on December 14, 2016._
|