{"name":"parse-repo","version":"1.0.4","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":"06d5a39e1d43de049f0f315433faa7b55f528109","_id":"parse-repo@1.0.4","_shasum":"74b91d2cb8675d11b99976a0065f6ce17fa1bcc8","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.11.5","_npmUser":{"name":"dgoguerra","email":"dgoguerra.or@gmail.com"},"dist":{"shasum":"74b91d2cb8675d11b99976a0065f6ce17fa1bcc8","tarball":"http://registry-npm.ywwl.com/parse-repo/download/parse-repo-1.0.4.tgz","integrity":"sha512-RdwYLh7cmxByP/BfeZX0QfIVfeNrH2fWgK1aLsGK+G6nCO4WTlCks4J7aW0O3Ap9BCPDF/e8rGTT50giQr10zg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEMCH0ItWzrCZAQivvuiuFYlGybU0Hr2NGnA2AbNzGiY07ACIGMyf1D5rKSdZ33C+OnNAvcpOso+RASFPjcxeamJLlsv"}],"size":3442,"noattachment":false,"key":"/parse-repo/-/parse-repo-1.0.4.tgz"},"maintainers":[{"name":"dgoguerra","email":"dgoguerra.or@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-repo-1.0.4.tgz_1509728645699_0.09907069127075374"},"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":1509728646652,"_cnpm_publish_time":1509728646652,"dist-tags":{"latest":"1.0.4"}}