{"_id":"extract-github","_rev":"363246","name":"extract-github","description":"Extract the Github project / repository URL from a given object","dist-tags":{"latest":"1.0.0"},"maintainers":[{"name":"3rdeden","email":"npm@3rd-Eden.com"},{"name":"indexzero","email":"charlie.robbins@gmail.com"},{"name":"jcrugzz","email":"jcrugzz@gmail.com"},{"name":"v1","email":"info@3rd-Eden.com"}],"time":{"modified":"2021-07-13T08:58:16.000Z","created":"2014-02-20T08:50:11.053Z","1.0.0":"2015-11-11T09:20:43.802Z","0.0.5":"2014-06-29T15:47:56.706Z","0.0.3":"2014-03-03T12:41:04.750Z","0.0.2":"2014-02-26T10:27:32.429Z","0.0.1":"2014-02-20T08:50:11.053Z"},"users":{},"author":{"name":"Arnout Kazemier"},"repository":{"type":"git","url":"git+https://github.com/3rd-Eden/extract-github.git"},"versions":{"1.0.0":{"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":"3rdeden","email":"npm@3rd-Eden.com"},{"name":"indexzero","email":"charlie.robbins@gmail.com"},{"name":"jcrugzz","email":"jcrugzz@gmail.com"},{"name":"v1","email":"info@3rd-Eden.com"}],"dist":{"shasum":"b0a3f2392029309862132bd62cf925ab6a5200ce","size":3696,"noattachment":false,"key":"/extract-github/-/extract-github-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/extract-github/download/extract-github-1.0.0.tgz"},"directories":{},"publish_time":1447233643802,"_cnpm_publish_time":1447233643802,"_hasShrinkwrap":false},"0.0.5":{"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":"3rdeden","email":"npm@3rd-Eden.com"},{"name":"indexzero","email":"charlie.robbins@gmail.com"},{"name":"jcrugzz","email":"jcrugzz@gmail.com"},{"name":"v1","email":"info@3rd-Eden.com"}],"dist":{"shasum":"f542536db8c19b983a3bec9db96d2ef2a5ff1a86","size":3615,"noattachment":false,"key":"/extract-github/-/extract-github-0.0.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/extract-github/download/extract-github-0.0.5.tgz"},"directories":{},"publish_time":1404056876706,"_cnpm_publish_time":1404056876706,"_hasShrinkwrap":false},"0.0.3":{"name":"extract-github","version":"0.0.3","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.3","dist":{"shasum":"5971b1def6313d5081af768cffbb07ab314f0492","size":3114,"noattachment":false,"key":"/extract-github/-/extract-github-0.0.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/extract-github/download/extract-github-0.0.3.tgz"},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"V1","email":"info@3rd-Eden.com"},"maintainers":[{"name":"3rdeden","email":"npm@3rd-Eden.com"},{"name":"indexzero","email":"charlie.robbins@gmail.com"},{"name":"jcrugzz","email":"jcrugzz@gmail.com"},{"name":"v1","email":"info@3rd-Eden.com"}],"directories":{},"publish_time":1393850464750,"_cnpm_publish_time":1393850464750,"_hasShrinkwrap":false},"0.0.2":{"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","size":2914,"noattachment":false,"key":"/extract-github/-/extract-github-0.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/extract-github/download/extract-github-0.0.2.tgz"},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"V1","email":"info@3rd-Eden.com"},"maintainers":[{"name":"3rdeden","email":"npm@3rd-Eden.com"},{"name":"indexzero","email":"charlie.robbins@gmail.com"},{"name":"jcrugzz","email":"jcrugzz@gmail.com"},{"name":"v1","email":"info@3rd-Eden.com"}],"directories":{},"publish_time":1393410452429,"_cnpm_publish_time":1393410452429,"_hasShrinkwrap":false},"0.0.1":{"name":"extract-github","version":"0.0.1","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.1","dist":{"shasum":"0fca6e9cc7351d70316d8b00ec565d6bc3df05c3","size":2858,"noattachment":false,"key":"/extract-github/-/extract-github-0.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/extract-github/download/extract-github-0.0.1.tgz"},"_from":".","_npmVersion":"1.3.21","_npmUser":{"name":"V1","email":"info@3rd-Eden.com"},"maintainers":[{"name":"3rdeden","email":"npm@3rd-Eden.com"},{"name":"indexzero","email":"charlie.robbins@gmail.com"},{"name":"jcrugzz","email":"jcrugzz@gmail.com"},{"name":"v1","email":"info@3rd-Eden.com"}],"directories":{},"publish_time":1392886211053,"_cnpm_publish_time":1392886211053,"_hasShrinkwrap":false}},"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","_attachments":{},"homepage":"https://github.com/3rd-Eden/extract-github","bugs":{"url":"https://github.com/3rd-Eden/extract-github/issues"},"license":"MIT"}