github-url-parse

0.1.0 • Public • Published

github-url-parse

NPM version Build Status Dependency Status Coverage Status

Parse the github user, repo, branch and other things from a GitHub url.

Install

$ npm install --save github-url-parse

Usage

var gitHubUrlParse = require('github-url-parse');
 
var github = gitHubUrlParse('https://github.com/stefanbuck/github-url-parse/blob/master/lib/index.js');
 
console.log('user:' + github.user); // stefanbuck
console.log('repo:' + github.repo); // github-url-parse
console.log('branch:' + github.branch); // master
console.log('path:' + github.path); // lib/index.js
console.log('type:' + github.type); // blob

License

Copyright (c) 2014 Stefan Buck. Licensed under the MIT license.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.0
    101
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.0
    101
  • 0.0.0
    0

Package Sidebar

Install

npm i github-url-parse

Weekly Downloads

91

Version

0.1.0

License

MIT

Last publish

Collaborators

  • stefanbuck