Socket
Socket
Sign inDemoInstall

github-url-parse

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github-url-parse

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


Version published
Weekly downloads
69
increased by137.93%
Maintainers
1
Weekly downloads
 
Created
Source

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.

FAQs

Package last updated on 10 Jul 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc