github-repo-from-config

1.0.2 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i github-repo-from-config

Weekly Downloads

0

Version

1.0.2

License

MIT

Last publish

Collaborators

  • juliangruber