{"_id":"repo-path-parse","_rev":"826817","name":"repo-path-parse","description":"parse repository path strings to get repository and organization parts","dist-tags":{"latest":"1.0.1"},"maintainers":[{"name":"tmcw","email":"tom@macwright.org"}],"time":{"modified":"2021-09-13T09:10:50.000Z","created":"2015-03-02T02:24:05.548Z","1.0.1":"2015-03-02T02:24:05.548Z"},"users":{},"author":{"name":"Tom MacWright"},"repository":{"type":"git","url":"git@github.com:tmcw/repo-path-parse.git"},"versions":{"1.0.1":{"name":"repo-path-parse","version":"1.0.1","description":"parse repository path strings to get repository and organization parts","main":"index.js","scripts":{"test":"tape test.js","doc":"dox -r < index.js | doxme --readme > README.md"},"keywords":["repo","git","github","repository"],"author":{"name":"Tom MacWright"},"license":"ISC","devDependencies":{"tape":"^3.5.0"},"dependencies":{"dox":"^0.6.1","doxme":"^1.8.1"},"repository":{"type":"git","url":"git@github.com:tmcw/repo-path-parse.git"},"gitHead":"22b2a7411c6a5ca2dab917567fb07ea5ff3a386e","bugs":{"url":"https://github.com/tmcw/repo-path-parse/issues"},"homepage":"https://github.com/tmcw/repo-path-parse","_id":"repo-path-parse@1.0.1","_shasum":"c510fbd5cd47eea04d81ca33cc5d4d533c8da60a","_from":".","_npmVersion":"2.3.0","_nodeVersion":"0.10.36","_npmUser":{"name":"tmcw","email":"tom@macwright.org"},"maintainers":[{"name":"tmcw","email":"tom@macwright.org"}],"dist":{"shasum":"c510fbd5cd47eea04d81ca33cc5d4d533c8da60a","size":1407,"noattachment":false,"key":"/repo-path-parse/-/repo-path-parse-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/repo-path-parse/download/repo-path-parse-1.0.1.tgz"},"directories":{},"publish_time":1425263045548,"_cnpm_publish_time":1425263045548,"_hasShrinkwrap":false}},"readme":"# repo-path-parse\n\n[![build status](https://secure.travis-ci.org/tmcw/repo-path-parse.png)](http://travis-ci.org/tmcw/repo-path-parse)\n\nparse repository path strings to get repository and organization parts\n\n\n### `repo-path-parse(url)`\n\nParse git remote URLs into an object with `owner` and `repo`\nkeys.\n\n\n### Parameters\n\n| parameter | type   | description                                |\n| --------- | ------ | ------------------------------------------ |\n| `url`     | String | any git-clonable URL that points to GitHub |\n\n\n### Example\n\n```js\nvar repoPathParse = require('repo-path-parse');\nrepoPathParse('git@github.com:tmcw/repo-path-parse.git');\n// returns { owner: 'tmcw', repo: 'repo-path-parse' }\n```\n\n\n**Returns** `Object`, an object of `{owner:'owner',repo:'repo'}`\n\n## Installation\n\nRequires [nodejs](http://nodejs.org/).\n\n```sh\n$ npm install repo-path-parse\n```\n\n## Tests\n\n```sh\n$ npm test\n```\n\n\n","_attachments":{},"homepage":"https://github.com/tmcw/repo-path-parse","bugs":{"url":"https://github.com/tmcw/repo-path-parse/issues"},"license":"ISC"}