{"name":"parse-repo","version":"1.0.3","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","keywords":["parse","repository","repo","uri","github","bitbucket"],"repository":{"type":"git","url":"git+https://github.com/dgoguerra/parse-repo.git"},"bugs":{"url":"https://github.com/dgoguerra/parse-repo/issues"},"scripts":{"test":"tape test.js"},"devDependencies":{"tape":"^4.5.1"},"gitHead":"6c3a0fd1a931d525f2db5e23142ca063c392305f","_id":"parse-repo@1.0.3","_shasum":"90ff68ab6ddbb73fd8550e5b413b7901f608b12a","_from":".","_npmVersion":"2.15.5","_nodeVersion":"4.4.5","_npmUser":{"name":"dgoguerra","email":"dgoguerra.or@gmail.com"},"dist":{"shasum":"90ff68ab6ddbb73fd8550e5b413b7901f608b12a","tarball":"http://registry-npm.ywwl.com/parse-repo/download/parse-repo-1.0.3.tgz","integrity":"sha512-AzngKSsP08lE8hAokmPr9YrKnX+6dibsSDzVGhmg4xotYtyftip9aXAbH03xQ2hTRzEGgZLe/Tt3SmINthQS1Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCeMhVwY7AdmuWdoMIGm3FOssdVSmwTRybI4gw0I0UlCQIhANHLhU1dO57VCI0Z/HKR3bxkwqdW8Hb1OPOyqQdreQBt"}],"size":1653,"noattachment":false,"key":"/parse-repo/-/parse-repo-1.0.3.tgz"},"maintainers":[{"name":"dgoguerra","email":"dgoguerra.or@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-repo-1.0.3.tgz_1508257377532_0.6259526691865176"},"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":1508257378478,"_cnpm_publish_time":1508257378478,"dist-tags":{"latest":"1.0.4"}}