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 = ;const origin = ;
origin
object is below.
type: 'https' domain: 'github.com' path: 'ringohub.git-origin-parser'