Skip to content

tmcw-up-for-adoption/repo-path-parse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

repo-path-parse

build status

parse repository path strings to get repository and organization parts

repo-path-parse(url)

Parse git remote URLs into an object with owner and repo keys.

Parameters

parameter type description
url String any git-clonable URL that points to GitHub

Example

var repoPathParse = require('repo-path-parse');
repoPathParse('git@github.com:tmcw/repo-path-parse.git');
// returns { owner: 'tmcw', repo: 'repo-path-parse' }

Returns Object, an object of {owner:'owner',repo:'repo'}

Installation

Requires nodejs.

$ npm install repo-path-parse

Tests

$ npm test

About

parse repository path strings to get repository and organization parts

Resources

Stars

Watchers

Forks

Packages

No packages published