{"name":"parse-repo","version":"1.0.0","description":"Extract repository info from a git remote URI","author":{"name":"Diego Guerra","email":"dgoguerra.or@gmail.com"},"license":"MIT","homepage":"https://github.com/dgoguerra/parse-repo","bugs":{"url":"https://github.com/dgoguerra/parse-repo/issues"},"scripts":{"test":"tape test.js"},"devDependencies":{"tape":"^4.5.1"},"gitHead":"2db0f16260a458561ead26420ed43bc80860c29c","_id":"parse-repo@1.0.0","_shasum":"3dbe1a669069012213720eb7a05bbc2f3e696460","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"dgoguerra","email":"dgoguerra.or@gmail.com"},"dist":{"shasum":"3dbe1a669069012213720eb7a05bbc2f3e696460","tarball":"http://registry-npm.ywwl.com/parse-repo/download/parse-repo-1.0.0.tgz","integrity":"sha512-iXNWFeeKo+iWSh/57XbfhYLke8O56reEcODjcdjTcM0oXtvx591coMDTGs1MUVaw8VTQ+SHIJXCk9PiJepvYMw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICoXBR8SagDEnp43HF+Ugp2BE+j59JrlnMlztcFVfBs6AiALn3gJLYTTq6ZmdyfAgKsxWhzLte1/RIzdhBCFQ/Bnkw=="}],"size":1197,"noattachment":false,"key":"/parse-repo/-/parse-repo-1.0.0.tgz"},"maintainers":[{"name":"dgoguerra","email":"dgoguerra.or@gmail.com"}],"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/parse-repo-1.0.0.tgz_1458584353734_0.12527365959249437"},"directories":{},"readme":"parse-repo\n==========\n\nExtract repository information from a git remote URI.\n\nInstallation\n------------\n\n```\nnpm install parse-repo\n```\n\nUsage\n-----\n\n```js\nvar parseRepo = require('parse-repo');\n\n// parsing a GitHub https remote\nparseRepo('https://github.com/npm/docs.git');\n/*\n{ remote: 'https://github.com/npm/docs.git',\n  protocol: 'https',\n  host: 'github.com',\n  repository: 'npm/docs',\n  owner: 'npm',\n  project: 'docs' }\n*/\n\n// slightly different bitbucket URI\nparseRepo('https://user@bitbucket.org/owner/org');\n/*\n{ remote: 'https://user@bitbucket.org/owner/org',\n  protocol: 'https',\n  host: 'bitbucket.org',\n  repository: 'owner/org',\n  owner: 'owner',\n  project: 'org' }\n*/\n\n// git remotes are also supported\nparseRepo('git@gitlab.com:gitlab-org/gitlab-ce.git');\n/*\n{ remote: 'git@gitlab.com:gitlab-org/gitlab-ce.git',\n  protocol: 'git',\n  host: 'gitlab.com',\n  repository: 'gitlab-org/gitlab-ce',\n  owner: 'gitlab-org',\n  project: 'gitlab-ce' }\n*/\n\n// a local remote, without owner information\nparseRepo('/local/path/repo-name');\n/*\n{ remote: '/local/path/repo-name',\n  protocol: 'file',\n  host: 'localhost',\n  repository: 'repo-name',\n  owner: null,\n  project: 'repo-name' }\n*/\n```\n\nLicense\n-------\nMIT license - http://www.opensource.org/licenses/mit-license.php\n","publish_time":1458584355973,"_cnpm_publish_time":1458584355973,"dist-tags":{"latest":"1.0.4"}}