{"name":"extract-github","version":"1.0.0","description":"Extract the Github project / repository URL from a given object","main":"index.js","scripts":{"test":"mocha $(find test -name '*.test.js')"},"repository":{"type":"git","url":"git+https://github.com/3rd-Eden/extract-github.git"},"keywords":["extract","github","url","repository","project","username","repo"],"author":{"name":"Arnout Kazemier"},"license":"MIT","bugs":{"url":"https://github.com/3rd-Eden/extract-github/issues"},"homepage":"https://github.com/3rd-Eden/extract-github","devDependencies":{"assume":"1.3.x","mocha":"2.3.x","pre-commit":"1.1.x"},"gitHead":"5ef71d9f107f80bb102749329a712292f1c64728","_id":"extract-github@1.0.0","_shasum":"b0a3f2392029309862132bd62cf925ab6a5200ce","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.1","_npmUser":{"name":"3rdeden","email":"npm@3rd-Eden.com"},"maintainers":[{"name":"jcrugzz","email":"jcrugzz@gmail.com"},{"name":"indexzero","email":"charlie.robbins@gmail.com"},{"name":"swaagie","email":"info@martijnswaagman.nl"},{"name":"v1","email":"info@3rd-Eden.com"},{"name":"3rdeden","email":"npm@3rd-Eden.com"}],"dist":{"shasum":"b0a3f2392029309862132bd62cf925ab6a5200ce","tarball":"http://registry-npm.ywwl.com/extract-github/download/extract-github-1.0.0.tgz","integrity":"sha512-bW+CfFRTnH6lZ1LBTalb5Nxtca1jAcFSqh069m97e5MdfRVKKQsfJjcknPgvbfKOYoiOmv82gRoxfOFZmMAiEw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFEJbU4cO5YIjj3KSTFx3MUKLEixnwl8s/WjHejX5k8WAiEAtiewk6xY3Nfs8Kp96ACI4LLY1ObJHBTde5OnuPUMT9g="}],"size":3696,"noattachment":false,"key":"/extract-github/-/extract-github-1.0.0.tgz"},"directories":{},"readme":"# extract-github\n\n[![Build Status](https://travis-ci.org/3rd-Eden/extract-github.png)](https://travis-ci.org/3rd-Eden/extract-github)\n\nExtract a valid github URL from a given object. We make the assumption that the\ngiven object follows a `package.json` format as used by npm.\n\n## Installation\n\nThis module is released in the npm registry as `extract-github` and can therefor\nbe installed using:\n\n```\nnpm install --save extract-github\n```\n\n## Usage\n\nThis module was written to only do specific task and do that task well, and that\nis extracting github information. We therefor export as a single function:\n\n```js\n'use strict';\n\nvar extract = require('extract-github');\n```\n\nOnce you've required the module you can feed it the contents of a package.json\nto extract to github information.\n\n```js\nvar github = extract(require('./package.json'));\n```\n\nThe `github` variable should now contain an object with a `user` and `repo`\nproperty which can be re-used to create a new github URL. In addition to parsing\npackage.json's it also supports extracting github information out of `README` it\ncan do this by extracting Travis-CI badges or just plain ol matching github URL\nfrom the content.\n\n```js\nvar github = extract(require('fs').readFileSync(__dirname +'/README.md'));\n```\n\n## License\n\nMIT\n","publish_time":1447233643802,"_cnpm_publish_time":1447233643802,"dist-tags":{"latest":"1.0.0"}}