git-origin-parser

0.1.1 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i git-origin-parser

Weekly Downloads

7

Version

0.1.1

License

MIT

Unpacked Size

188 kB

Total Files

9

Last publish

Collaborators

  • aoki