repo-path-parse
parse repository path strings to get repository and organization parts
Last updated 11 years ago by tmcw .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install repo-path-parse 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.1                                ...           latest (11 years ago)

1 Versions

  • 1.0.1                                ...           11 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (2)
Dev Dependencies (1)
Dependents (2)

Copyright 2013 - present © cnpmjs.org | Home |