Socket
Socket
Sign inDemoInstall

github-url-to-object

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github-url-to-object - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

dist/example.html

9

package.json
{
"name": "github-url-to-object",
"version": "1.0.0",
"version": "1.1.0",
"description": "Extract user, repo, and other interesting properties from GitHub URLs",
"main": "index.js",
"scripts": {
"test": "mocha"
"test": "mocha",
"build": "browserify index.js --standalone gh > dist/gh.js"
},

@@ -27,4 +28,6 @@ "repository": {

"devDependencies": {
"mocha": "^1.19.0"
"browserify": "^4.2.1",
"mocha": "^1.19.0",
"uglify-js": "^2.4.15"
}
}
# github-url-to-object [![Build Status](https://travis-ci.org/zeke/github-url-to-object.png?branch=master)](https://travis-ci.org/zeke/github-url-to-object)
A node module that extracts useful properties like `user` and
`repo` from various flavors of GitHub URLs.
A module for node.js and browsers that extracts useful properties like `user`,
`repo`, and `branch` from various flavors of GitHub URLs.

@@ -21,3 +21,2 @@ There's also a Bitbucket equivalent to this library: [bitbucket-url-to-object](https://github.com/zeke/bitbucket-url-to-object).

gh('monkey/business')
gh('github:monkey/business')

@@ -43,6 +42,6 @@ gh('https://github.com/monkey/business')

The shorthand format lets you specify a branch:
The shorthand form lets you specify a branch:
```js
gh('monkey/business#nachos')
gh('github:monkey/business#nachos')
{

@@ -49,0 +48,0 @@ user: 'monkey',

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