1.0.2 • Published 10 years ago

github-repo-from-config v1.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
10 years ago

github-repo-from-config

Parse the github repo from .git/config.

Example

var parse = require('github-repo-from-config');
var fs = require('fs');

var config = fs.readFileSync('.git/config');
var info = parse(config);
// => {
//      "account": "micnews",
//      "repo": "github-repo-from-config",
//      "path": "micnews/github-repo-from-config"
//    }

Installation

$ npm install github-repo-from-config

License

MIT