{"name":"extract-github","version":"0.0.5","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.x","chai":"1.9.x","pre-commit":"0.0.x"},"_id":"extract-github@0.0.5","_shasum":"f542536db8c19b983a3bec9db96d2ef2a5ff1a86","_from":".","_npmVersion":"1.4.10","_npmUser":{"name":"V1","email":"info@3rd-Eden.com"},"maintainers":[{"name":"V1","email":"info@3rd-Eden.com"},{"name":"jcrugzz","email":"jcrugzz@gmail.com"},{"name":"indexzero","email":"charlie.robbins@gmail.com"},{"name":"swaagie","email":"info@martijnswaagman.nl"}],"dist":{"shasum":"f542536db8c19b983a3bec9db96d2ef2a5ff1a86","tarball":"http://registry-npm.ywwl.com/extract-github/download/extract-github-0.0.5.tgz","integrity":"sha512-CrHdEES7mKSJV/jiUFF5BDpdDDPGzwbiBDCVef/q8eWP4mmYL5vgUdpwfVr3OhEYpGkGRNwsUx2Lgl/zoWzL1w==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCIl7D4ENbvb/0F5OAOfp7JXrCxUVdWsvoHhc0JVSi+QgIgJRdYzHAamflf0LxDYbIVAfBAKEF5wPWyGzxy3D5qtzI="}],"size":3615,"noattachment":false,"key":"/extract-github/-/extract-github-0.0.5.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":1404056876706,"_cnpm_publish_time":1404056876706,"dist-tags":{"latest":"1.0.0"}}