0.1.1 • Published 6 years ago

git-origin-parser v0.1.1

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

git-origin-parser

git-origin-parser is to parse git URI and return JS object. Support protocol is file://, git://, ssh:// and http(s)://.

Install

npm install git-origin-parser

How to Use

const parse = require('git-origin-parser');
const origin = parse('https://github.com/ringohub.git-origin-parser.git');

origin object is below.

{ type: 'https',
  domain: 'github.com',
  path: 'ringohub.git-origin-parser' }