Skip to content

aoki/git-origin-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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' }

About

git-origin-parser is to parse git URI and return JS object.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published