{"name":"parse-repo","version":"1.0.2","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":"a162812f9a190ec9a8826d60813fa0dd9a95dd17","_id":"parse-repo@1.0.2","_shasum":"d76f0a46b33cb1589623caf81a5b6740e1fea9da","_from":".","_npmVersion":"2.15.5","_nodeVersion":"4.4.5","_npmUser":{"name":"dgoguerra","email":"dgoguerra.or@gmail.com"},"dist":{"shasum":"d76f0a46b33cb1589623caf81a5b6740e1fea9da","tarball":"http://registry-npm.ywwl.com/parse-repo/download/parse-repo-1.0.2.tgz","integrity":"sha512-taXto5YPXMe6k+T6fzpvkJ0jHCNQONDW6rhQkJfcJVEVEst3s+lrnys61iy8e/6DMkGguzT/AqCgCiIBJG3cag==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB1Or8RkJJMErbjqDtDHVLAYrBesaRPhfFMQyfo45/KoAiEAnRZ2rrCxkJSWZVLNxLs5W/b/8mlOvJPwGQ9S66qHRHE="}],"size":1652,"noattachment":false,"key":"/parse-repo/-/parse-repo-1.0.2.tgz"},"maintainers":[{"name":"dgoguerra","email":"dgoguerra.or@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/parse-repo-1.0.2.tgz_1508256497067_0.8474595893640071"},"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":1508256497951,"_cnpm_publish_time":1508256497951,"dist-tags":{"latest":"1.0.4"}}