{"maintainers":[{"email":"gar+npm@danger.computer","name":"anonymous"},{"email":"saquibkhan@github.com","name":"anonymous"},{"email":"npm-cli+bot@github.com","name":"anonymous"},{"email":"reggi@github.com","name":"anonymous"},{"email":"owlstronaut@github.com","name":"anonymous"}],"keywords":["git","github","url","normalize","npm"],"dist-tags":{"latest":"3.0.2"},"author":{"name":"Forrest L Norvell","email":"ogd@aoaioxxysz.net"},"description":"Normalizes Git URLs. For npm, but you can use it too.","readme":"# normalize-git-url\n\nYou have a bunch of Git URLs. You want to convert them to a canonical\nrepresentation, probably for use inside npm so that it doesn't end up creating\na bunch of superfluous cached origins. You use this package.\n\n## Usage\n\n```javascript\nvar ngu = require('normalize-git-url');\nvar normalized = ngu(\"git+ssh://git@github.com:organization/repo.git#hashbrowns\")\n// get back:\n// {\n//   url : \"ssh://git@github.com/organization/repo.git\",\n//   branch : \"hashbrowns\" // did u know hashbrowns are delicious?\n// }\n```\n\n## API\n\nThere's just the one function, and all it takes is a single parameter, a non-normalized Git URL.\n\n### normalizeGitUrl(url)\n\n* `url` {String} The Git URL (very loosely speaking) to be normalized.\n\nReturns an object with the following format:\n\n* `url` {String} The normalized URL.\n* `branch` {String} The treeish to be checked out once the repo at `url` is\n  cloned. It doesn't have to be a branch, but it's a lot easier to intuit what\n  the output is for with that name.\n\n## Limitations\n\nRight now this doesn't try to special-case GitHub too much -- it doesn't ensure\nthat `.git` is added to the end of URLs, it doesn't prefer `https:` over\n`http:` or `ssh:`, it doesn't deal with redirects, and it doesn't try to\nresolve symbolic names to treeish hashcodes. For now, it just tries to account\nfor minor differences in representation.\n","repository":{"url":"git+https://github.com/npm/normalize-git-url.git","type":"git"},"users":{"bret":true,"alshamiri1":true,"alshamiri2":true,"flumpus-dev":true},"bugs":{"url":"https://github.com/npm/normalize-git-url/issues"},"license":"ISC","versions":{"1.0.0":{"name":"normalize-git-url","version":"1.0.0","keywords":["git","github","url","normalize","npm"],"author":{"name":"Forrest L Norvell","email":"ogd@aoaioxxysz.net"},"license":"ISC","_id":"normalize-git-url@1.0.0","maintainers":[{"name":"anonymous","email":"ogd@aoaioxxysz.net"}],"homepage":"https://github.com/npm/normalize-git-url","bugs":{"url":"https://github.com/npm/normalize-git-url/issues"},"dist":{"shasum":"80e59471f0616b579893973e3f1b3684bedbad48","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/normalize-git-url/-/normalize-git-url-1.0.0.tgz","integrity":"sha512-NWe21HKRRAgc9BXDXU2uDrnlLX2DUmMiufCFXFwzuoAM0QuuXV0wDUIoSh+A5KuzeNv0GE3hHKiXB9IZO0gSBQ==","signatures":[{"sig":"MEUCIDC6EN3k4zClOelHxy+GDw2JedN30RP9eQ1NERNfM8xGAiEA3/NwCZf41n/puJ99Y51UT9Z0b9QMOQj4GcxDrDuXwl8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"normalize-git-url.js","_from":".","_shasum":"80e59471f0616b579893973e3f1b3684bedbad48","gitHead":"e51f43718af66ffbced4ccfd9a6514470fc4c553","scripts":{"test":"tap test/*.js"},"_npmUser":{"name":"anonymous","email":"ogd@aoaioxxysz.net"},"deprecated":"This package is no longer supported.","repository":{"url":"https://github.com/npm/normalize-git-url.git","type":"git"},"_npmVersion":"2.1.16","description":"Normalizes Git URLs. For npm, but you can use it too.","directories":{"test":"test"},"_nodeVersion":"0.10.35","dependencies":{},"devDependencies":{"tap":"^0.4.13"}},"1.0.1":{"name":"normalize-git-url","version":"1.0.1","keywords":["git","github","url","normalize","npm"],"author":{"name":"Forrest L Norvell","email":"ogd@aoaioxxysz.net"},"license":"ISC","_id":"normalize-git-url@1.0.1","maintainers":[{"name":"anonymous","email":"ogd@aoaioxxysz.net"}],"homepage":"https://github.com/npm/normalize-git-url","bugs":{"url":"https://github.com/npm/normalize-git-url/issues"},"dist":{"shasum":"1b561345d66e3a3bc5513a5ace85f155ca42613e","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/normalize-git-url/-/normalize-git-url-1.0.1.tgz","integrity":"sha512-k1ayrNzLueIt6bKvn3nNc8tUnxjnZArUKedD9eCU6HdmZlZRld+Yt1AquaUn8HFzzxySiX2D91Gih0u8bkrcQQ==","signatures":[{"sig":"MEUCICVypg6qrr9dmKZPhsOEedz3a0xhvvR7VlFTTMXsIDilAiEA2vuSQPDL37C38nOadDaH/ck8Ri5rB0ot+gQNwrJFUCM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"normalize-git-url.js","_from":".","_shasum":"1b561345d66e3a3bc5513a5ace85f155ca42613e","gitHead":"d87bf42e845ed664e4a8bab3490052fb44c90433","scripts":{"test":"tap test/*.js"},"_npmUser":{"name":"anonymous","email":"ogd@aoaioxxysz.net"},"deprecated":"This package is no longer supported.","repository":{"url":"git+https://github.com/npm/normalize-git-url.git","type":"git"},"_npmVersion":"2.10.1","description":"Normalizes Git URLs. For npm, but you can use it too.","directories":{"test":"test"},"_nodeVersion":"2.0.2","dependencies":{},"devDependencies":{"tap":"^1.1.0"}},"2.0.0":{"name":"normalize-git-url","version":"2.0.0","keywords":["git","github","url","normalize","npm"],"author":{"name":"Forrest L Norvell","email":"ogd@aoaioxxysz.net"},"license":"ISC","_id":"normalize-git-url@2.0.0","maintainers":[{"name":"anonymous","email":"ogd@aoaioxxysz.net"},{"name":"anonymous","email":"me@re-becca.org"}],"homepage":"https://github.com/npm/normalize-git-url","bugs":{"url":"https://github.com/npm/normalize-git-url/issues"},"dist":{"shasum":"2cf92aeda24dd2bccf076edef83f4feaf925e436","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/normalize-git-url/-/normalize-git-url-2.0.0.tgz","integrity":"sha512-Axq5EaBG1i/vton18TOuue+neYPbIVHY3u/G4QNuFV5ySeLbN9C1TH1PKfmtG+mH7iGUtyV6Nthgaq0x3JChZg==","signatures":[{"sig":"MEYCIQD7/miLRIHctV5LwSHmdxHpjOIcA3VbDyFxczTDCk5xwwIhAJasrHupyXDSS4gGvLJ6Z62O5PGgLik0xVO8usTCXht3","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"normalize-git-url.js","_from":".","_shasum":"2cf92aeda24dd2bccf076edef83f4feaf925e436","gitHead":"cf9fb245bc25d2a8914b71e8989ec426e7819e00","scripts":{"test":"tap test/*.js"},"_npmUser":{"name":"anonymous","email":"me@re-becca.org"},"deprecated":"This package is no longer supported.","repository":{"url":"git+https://github.com/npm/normalize-git-url.git","type":"git"},"_npmVersion":"2.11.3","description":"Normalizes Git URLs. For npm, but you can use it too.","directories":{"test":"test"},"_nodeVersion":"2.3.1","dependencies":{},"devDependencies":{"tap":"^1.1.0"}},"3.0.0":{"name":"normalize-git-url","version":"3.0.0","keywords":["git","github","url","normalize","npm"],"author":{"name":"Forrest L Norvell","email":"ogd@aoaioxxysz.net"},"license":"ISC","_id":"normalize-git-url@3.0.0","maintainers":[{"name":"anonymous","email":"ogd@aoaioxxysz.net"},{"name":"anonymous","email":"me@re-becca.org"},{"name":"anonymous","email":"kat@sykosomatic.org"}],"homepage":"https://github.com/npm/normalize-git-url","bugs":{"url":"https://github.com/npm/normalize-git-url/issues"},"dist":{"shasum":"932b2170efc8c86d228e771a91ba92b05f16bab8","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/normalize-git-url/-/normalize-git-url-3.0.0.tgz","integrity":"sha512-pI/VsM5I0nme9Y2JIxSwMeIVLGot3xRukqrxT1CgAKfh46MwYsfnxh4eOVWNdbwDclpCCLldykZOUb7PWElx+g==","signatures":[{"sig":"MEYCIQDf8GCjvNB7qlJadpzuiBJUDGzDWEaaST4leywKoGkjIQIhAKYNVriDqSXa0p3xJ5kW6p7bcaVZs2hE4dK2D5JfhFx8","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"normalize-git-url.js","_from":".","_shasum":"932b2170efc8c86d228e771a91ba92b05f16bab8","gitHead":"5db4e64e1f2592477422f34fde9c8aa8ad238611","scripts":{"test":"tap test/*.js"},"_npmUser":{"name":"anonymous","email":"kat@sykosomatic.org"},"deprecated":"This package is no longer supported.","repository":{"url":"git+https://github.com/npm/normalize-git-url.git","type":"git"},"_npmVersion":"3.1.2","description":"Normalizes Git URLs. For npm, but you can use it too.","directories":{"test":"test"},"_nodeVersion":"2.2.2","dependencies":{},"devDependencies":{"tap":"^1.1.0"}},"3.0.1":{"name":"normalize-git-url","version":"3.0.1","keywords":["git","github","url","normalize","npm"],"author":{"name":"Forrest L Norvell","email":"ogd@aoaioxxysz.net"},"license":"ISC","_id":"normalize-git-url@3.0.1","maintainers":[{"name":"anonymous","email":"ogd@aoaioxxysz.net"},{"name":"anonymous","email":"me@re-becca.org"},{"name":"anonymous","email":"kat@sykosomatic.org"}],"homepage":"https://github.com/npm/normalize-git-url","bugs":{"url":"https://github.com/npm/normalize-git-url/issues"},"dist":{"shasum":"d40d419d05a15870271e50534dbb7b8ccd9b0a5c","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/normalize-git-url/-/normalize-git-url-3.0.1.tgz","integrity":"sha512-iPqGGv2Fk/kqubtMEvh0El5BfOU95p2cniukAbbg7oRUFr3idbJB1FI2CbJQjV+meQKLSKOZAJSJmVxyCxK6og==","signatures":[{"sig":"MEYCIQDg3CfyCKdKimR+PiLJ4fnMa+WKKoVVj6dcqPzylsFWvwIhAOZ6aiGhDlbz/J7US9E78FV4QkQnz2IyTbT8gXt8/Mwk","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"normalize-git-url.js","_from":".","_shasum":"d40d419d05a15870271e50534dbb7b8ccd9b0a5c","gitHead":"8393cd4345e404eb6ad2ff6853dcc8287807ca22","scripts":{"test":"tap test/*.js"},"_npmUser":{"name":"anonymous","email":"kat@sykosomatic.org"},"deprecated":"This package is no longer supported.","repository":{"url":"git+https://github.com/npm/normalize-git-url.git","type":"git"},"_npmVersion":"3.1.2","description":"Normalizes Git URLs. For npm, but you can use it too.","directories":{"test":"test"},"_nodeVersion":"2.2.2","dependencies":{},"devDependencies":{"tap":"^1.1.0"}},"3.0.2":{"name":"normalize-git-url","version":"3.0.2","keywords":["git","github","url","normalize","npm"],"author":{"name":"Forrest L Norvell","email":"ogd@aoaioxxysz.net"},"license":"ISC","_id":"normalize-git-url@3.0.2","maintainers":[{"name":"anonymous","email":"ogd@aoaioxxysz.net"},{"name":"anonymous","email":"me@re-becca.org"},{"name":"anonymous","email":"kat@sykosomatic.org"}],"homepage":"https://github.com/npm/normalize-git-url","bugs":{"url":"https://github.com/npm/normalize-git-url/issues"},"dist":{"shasum":"8e5f14be0bdaedb73e07200310aa416c27350fc4","tarball":"http://repository.ncinga.com/nexus/content/repositories/npm-js-registry/normalize-git-url/-/normalize-git-url-3.0.2.tgz","integrity":"sha512-UEmKT33ssKLLoLCsFJ4Si4fmNQsedNwivXpuNTR4V1I97jU9WZlicTV1xn5QAG5itE5B3Z9zhl8OItP6wIGkRA==","signatures":[{"sig":"MEUCIQCra1TVIz+G7HNV4HB6xGIgl6YV8wVKKk71leBxoGigWQIgXf+1IDH9jC10kQb9OufF/+2agJKmBTkerb8foXxAZ7Y=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"normalize-git-url.js","_from":".","_shasum":"8e5f14be0bdaedb73e07200310aa416c27350fc4","gitHead":"59553801a9f389857b48e71e9ab54592815f7d15","scripts":{"test":"tap test/*.js"},"_npmUser":{"name":"anonymous","email":"me@re-becca.org"},"deprecated":"This package is no longer supported.","repository":{"url":"git+https://github.com/npm/normalize-git-url.git","type":"git"},"_npmVersion":"3.8.7","description":"Normalizes Git URLs. For npm, but you can use it too.","directories":{"test":"test"},"_nodeVersion":"4.4.0","dependencies":{},"devDependencies":{"tap":"^1.1.0"},"_npmOperationalInternal":{"tmp":"tmp/normalize-git-url-3.0.2.tgz_1460155404934_0.9728229902684689","host":"packages-12-west.internal.npmjs.com"}}},"name":"normalize-git-url","time":{"created":"2014-12-25T09:08:29.858Z","modified":"2026-03-19T19:29:47.288Z","1.0.0":"2014-12-25T09:08:29.858Z","1.0.1":"2015-05-22T01:43:36.711Z","2.0.0":"2015-06-25T00:21:03.227Z","3.0.0":"2015-07-16T18:39:54.738Z","3.0.1":"2015-07-16T22:00:48.107Z","3.0.2":"2016-04-08T22:43:25.346Z"},"readmeFilename":"README.md","homepage":"https://github.com/npm/normalize-git-url"}