{"_id":"package-repo","_rev":"3-e538b8c34ec8b0bb4e729a9cb1d04336","name":"package-repo","description":"Give me a package.json and I'll tell you about its repository","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"package-repo","version":"1.0.0","description":"Give me a package.json and I'll tell you about its repository","main":"index.js","scripts":{"test":"standard && mocha"},"repository":{"type":"git","url":"git+https://github.com/zeke/package-repo.git"},"keywords":["package.json","repository","github","bitbucket","url"],"author":{"name":"zeke"},"license":"MIT","bugs":{"url":"https://github.com/zeke/package-repo/issues"},"homepage":"https://github.com/zeke/package-repo#readme","devDependencies":{"chai":"^3.5.0","mocha":"^2.4.5","require-dir":"^0.3.0","snazzy":"^3.0.0"},"dependencies":{"bitbucket-url-to-object":"^0.3.0","github-url-to-object":"^2.2.1"},"gitHead":"7fbf32d966e8a2f430a0009396ad41acfaefda6e","_id":"package-repo@1.0.0","_shasum":"05238981a973c5295cdf4263117d8d265b5debdb","_from":".","_npmVersion":"3.6.0","_nodeVersion":"5.7.0","_npmUser":{"name":"zeke","email":"zeke@sikelianos.com"},"maintainers":[{"name":"zeke","email":"zeke@sikelianos.com"}],"dist":{"shasum":"05238981a973c5295cdf4263117d8d265b5debdb","tarball":"https://registry.npmjs.org/package-repo/-/package-repo-1.0.0.tgz","integrity":"sha512-H7lZ4zanqa7jkd4NwH+E1PUH1v8lXZ4MOdPahvX4M4kMF1aRAmkMXVioQRJcDyxZvF6RlWRyTWTZUf/h1yQhKA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIC7Aq26JQUbIzg12ITixZdpLD0A5uEvj7ye8piYx2x82AiAcpS8XM1snz35jWRgl1E3fAJtuNm79DsUMoH2HhvDQ6w=="}]},"_npmOperationalInternal":{"host":"packages-13-west.internal.npmjs.com","tmp":"tmp/package-repo-1.0.0.tgz_1457758593070_0.6808906579390168"}}},"readme":"# package-repo\n\nGive this function a package.json object, or a path to a package.json file. It will look for a `repository` or `repository.url` key in the given object and attempt to parse it as a GitHub or BitBucket repository URL. See [github-url-to-object](http://npm.im/github-url-to-object) and [bitbucket-url-to-object](http://npm.im/bitbucket-url-to-object) for details about the object returned.\n\n## Installation\n\n```sh\nnpm install package-repo --save\n```\n\n## Usage\n\n```js\nconst packageRepo = require(\"package-repo\")\n\npackageRepo('./some/package.json')\n// or\npackageRepo(somePackage)\n\n/*\n{\n  user: 'monkey',\n  repo: 'business',\n  branch: 'master',\n  tarball_url: 'https://api.github.com/repos/monkey/business/tarball/master',\n  clone_url: 'https://github.com/monkey/business',\n  https_url: 'https://github.com/monkey/business',\n  travis_url: 'https://travis-ci.org/monkey/business',\n  api_url: 'https://api.github.com/repos/monkey/business'\n  zip_url: 'https://github.com/monkey/business/archive/master.zip'\n}\n*/\n\n```\n\n## Tests\n\n```sh\nnpm install\nnpm test\n```\n\n## Dependencies\n\n- [bitbucket-url-to-object](https://github.com/zeke/bitbucket-url-to-object): Extract user, repo, and other interesting properties from Bitbucket URLs\n- [github-url-to-object](https://github.com/zeke/github-url-to-object): Extract user, repo, and other interesting properties from GitHub URLs\n\n## Dev Dependencies\n\n- [chai](https://github.com/chaijs/chai): BDD/TDD assertion library for node.js and the browser. Test framework agnostic.\n- [mocha](https://github.com/mochajs/mocha): simple, flexible, fun test framework\n- [require-dir](https://github.com/aseemk/requireDir): Helper to require() directories.\n- [snazzy](https://github.com/feross/snazzy): Format JavaScript Standard Style as Stylish (i.e. snazzy) output\n\n\n## License\n\nMIT\n\n_Generated by [package-json-to-readme](https://github.com/zeke/package-json-to-readme)_\n","maintainers":[{"name":"zeke","email":"zeke@sikelianos.com"}],"time":{"modified":"2022-06-23T06:39:37.627Z","created":"2016-03-12T04:56:33.618Z","1.0.0":"2016-03-12T04:56:33.618Z"},"homepage":"https://github.com/zeke/package-repo#readme","keywords":["package.json","repository","github","bitbucket","url"],"repository":{"type":"git","url":"git+https://github.com/zeke/package-repo.git"},"author":{"name":"zeke"},"bugs":{"url":"https://github.com/zeke/package-repo/issues"},"license":"MIT","readmeFilename":"README.md"}