{
  "name": "github-url-from-git",
  "version": "1.4.0",
  "description": "Parse a github git url and return the github repo url",
  "main": "index.js",
  "scripts": {
    "test": "mocha test.js --reporter spec --require should"
  },
  "repository": {
    "type": "git",
    "url": "https://github.com/visionmedia/node-github-url-from-git.git"
  },
  "keywords": [
    "github",
    "git",
    "url",
    "parser"
  ],
  "author": {
    "name": "TJ Holowaychuk"
  },
  "license": "MIT",
  "devDependencies": {
    "better-assert": "~1.0.0",
    "mocha": "~1.9.0",
    "should": "~1.2.2"
  },
  "readme": "\n# github-url-from-git\n\n```js\ndescribe('parse(url)', function(){\n  it('should support git://*', function(){\n    var url = 'git://github.com/jamesor/mongoose-versioner';\n    parse(url).should.equal('https://github.com/jamesor/mongoose-versioner');\n  })\n\n  it('should support git://*.git', function(){\n    var url = 'git://github.com/treygriffith/cellar.git';\n    parse(url).should.equal('https://github.com/treygriffith/cellar');\n  })\n\n  it('should support https://*', function(){\n    var url = 'https://github.com/Empeeric/i18n-node';\n    parse(url).should.equal('https://github.com/Empeeric/i18n-node');\n  })\n\n  it('should support https://*.git', function(){\n    var url = 'https://jpillora@github.com/banchee/tranquil.git';\n    parse(url).should.equal('https://github.com/banchee/tranquil');\n  })\n\n  it('should return undefined on failure', function(){\n    var url = 'git://github.com/justgord/.git';\n    assert(null == parse(url));\n  })\n\n  it('should parse git@github.com:bcoe/thumbd.git', function() {\n    var url = 'git@github.com:bcoe/thumbd.git';\n    parse(url).should.eql('https://github.com/bcoe/thumbd');\n  })\n\n  it('should parse git@github.com:bcoe/thumbd.git#2.7.0', function() {\n    var url = 'git@github.com:bcoe/thumbd.git#2.7.0';\n    parse(url).should.eql('https://github.com/bcoe/thumbd');\n  })\n\n  it('should parse git+https://github.com/bcoe/thumbd.git', function() {\n    var url = 'git+https://github.com/bcoe/thumbd.git';\n    parse(url).should.eql('https://github.com/bcoe/thumbd');\n  })\n\n  it('should parse git+ssh://github.com/bcoe/thumbd.git', function() {\n    var url = 'git+ssh://github.com/bcoe/thumbd.git';\n    parse(url).should.eql('https://github.com/bcoe/thumbd');\n  })\n\n  it('should parse https://EastCloud@github.com/EastCloud/node-websockets.git', function() {\n    var url = 'https://EastCloud@github.com/EastCloud/node-websockets.git';\n    parse(url).should.eql('https://github.com/EastCloud/node-websockets');\n  })\n\n  // gist urls.\n\n  it('should parse git@gist urls', function() {\n    var url = 'git@gist.github.com:3135914.git';\n    parse(url).should.equal('https://gist.github.com/3135914')\n  })\n\n  it('should parse https://gist urls', function() {\n    var url = 'https://gist.github.com/3135914.git';\n    parse(url).should.equal('https://gist.github.com/3135914')\n  })\n\n  // Handle arbitrary GitHub Enterprise domains.\n\n  it('should parse parse extra GHE urls provided', function() {\n    var url = 'git://github.example.com/treygriffith/cellar.git';\n    parse(\n      url, {extraBaseUrls: ['github.example.com']}\n    ).should.equal('https://github.example.com/treygriffith/cellar');\n  });\n\n  it('should parse GHE urls with multiple subdomains', function() {\n    var url = 'git://github.internal.example.com/treygriffith/cellar.git';\n    parse(\n      url, {extraBaseUrls: ['github.internal.example.com']}\n    ).should.equal('https://github.internal.example.com/treygriffith/cellar');\n  });\n})\n\ndescribe('re', function() {\n  it('should expose GitHub url parsing regex', function() {\n    parse.re.source.should.equal(\n      /^(?:https?:\\/\\/|git:\\/\\/)?(?:[^@]+@)?(gist.github.com|github.com)[:\\/]([^\\/]+\\/[^\\/]+?|[0-9]+)$/.source\n    )\n  });\n})\n```\n",
  "readmeFilename": "Readme.md",
  "bugs": {
    "url": "https://github.com/visionmedia/node-github-url-from-git/issues"
  },
  "homepage": "https://github.com/visionmedia/node-github-url-from-git",
  "_id": "github-url-from-git@1.4.0",
  "_shasum": "285e6b520819001bde128674704379e4ff03e0de",
  "_from": "github-url-from-git@^1.3.0",
  "_resolved": "https://registry.npm.taobao.org/github-url-from-git/download/github-url-from-git-1.4.0.tgz"
}
