parse repository path strings to get repository and organization parts
Parse git remote URLs into an object with owner
and repo
keys.
parameter | type | description |
---|---|---|
url |
String | any git-clonable URL that points to GitHub |
var repoPathParse = require('repo-path-parse');
repoPathParse('[email protected]:tmcw/repo-path-parse.git');
// returns { owner: 'tmcw', repo: 'repo-path-parse' }
Returns Object
, an object of {owner:'owner',repo:'repo'}
Requires nodejs.
$ npm install repo-path-parse
$ npm test