{"name":"extract-github","version":"0.0.2","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":"https://github.com/3rd-Eden/extract-github"},"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":{"mocha":"~1.17.1","chai":"~1.9.0","pre-commit":"0.0.4"},"_id":"extract-github@0.0.2","dist":{"shasum":"9a3ad397c21c880dd4526e42b98e6a0f3a24ed60","tarball":"http://registry-npm.ywwl.com/extract-github/download/extract-github-0.0.2.tgz","integrity":"sha512-uKg0FUF1O/ajJhgxjv8TtLpcp94kYQ/Ra0itAcum1XOGCM7OBbuFHcSnRMUKUj80/NY3edM9rNl8JxIDsYX/vA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEQYfCZlPxITqy6qRjLZ4RapmERc43azLDo9hD5Ju1XuAiEAmfymG43a9AdsE+v/PQT/i9Rs7LGpgGW6pRHJPwha0nA="}],"size":2914,"noattachment":false,"key":"/extract-github/-/extract-github-0.0.2.tgz"},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"V1","email":"info@3rd-Eden.com"},"maintainers":[{"name":"V1","email":"info@3rd-Eden.com"}],"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":1393410452429,"_cnpm_publish_time":1393410452429,"dist-tags":{"latest":"1.0.0"}}