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 0.5.2 to 0.5.3

1

index.js

@@ -21,3 +21,4 @@ var url = require('url')

obj.https_url = "https://github.com/" + obj.user + "/" + obj.repo
obj.travis_url = "https://travis-ci.org/" + obj.user + "/" + obj.repo
return obj
}

2

package.json
{
"name": "github-url-to-object",
"version": "0.5.2",
"version": "0.5.3",
"description": "Extract user, repo, and other interesting properties from GitHub URLs",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -34,2 +34,3 @@ # 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)

tarball_url: 'https://api.github.com/repos/monkey/business/tarball'
travis_url: 'https://travis-ci.org/monkey/business',
}

@@ -36,0 +37,0 @@ ```

@@ -15,7 +15,7 @@ var mocha = require("mocha")

it("user", function() {
assert.equal(obj.user, 'foo-master')
assert.equal(obj.user, "foo-master")
})
it("repo", function() {
assert.equal(obj.repo, 'party-time')
assert.equal(obj.repo, "party-time")
})

@@ -28,4 +28,9 @@

it("https_url", function() {
assert.equal(obj.https_url, 'https://github.com/foo-master/party-time')
assert.equal(obj.https_url, "https://github.com/foo-master/party-time")
})
it("travis_url", function() {
assert.equal(obj.travis_url, "https://travis-ci.org/foo-master/party-time")
})
})

@@ -32,0 +37,0 @@

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