{"name":"github-contributors","description":"Generate a markdown or JSON list of contributors for a project using the GitHub API.","version":"0.4.0","homepage":"https://github.com/jonschlinkert/github-contributors","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git+https://github.com/jonschlinkert/github-contributors.git"},"bugs":{"url":"https://github.com/jonschlinkert/github-contributors/issues"},"license":"MIT","files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"format-people":"^0.1.1","github-base":"^0.5.0"},"devDependencies":{"data-store":"^0.16.1","extend-shallow":"^2.0.1","gulp-format-md":"^0.1.10","mocha":"^3.0.2"},"keywords":["contributors","github"],"verb":{"toc":false,"layout":"default","tasks":["readme"],"plugins":["gulp-format-md"],"related":{"list":["get-pkgs","github-base"]},"lint":{"reflinks":true},"reflinks":["verb","verb-generate-readme"]},"gitHead":"3fc455bbaef3ee05a0c05c059ed7679d479088f2","_id":"github-contributors@0.4.0","_shasum":"d5544de9a358b468e558a95ff2362ce14aa58dc6","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.3.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"},{"name":"doowb","email":"brian.woodward@gmail.com"}],"dist":{"shasum":"d5544de9a358b468e558a95ff2362ce14aa58dc6","tarball":"http://registry-npm.ywwl.com/github-contributors/download/github-contributors-0.4.0.tgz","integrity":"sha512-TUsKGjMCkuzuzLFBQ1sJZSzsovLYNzoxzu9YAWC5uH93n+stq5EnmPKMxP9GaP1kuzgFprmhVlQkeNXYM7aahA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDYTsS7fmDe+C03Bo/EgCbJNla110fl5nxQiv+y/tXT6QIhAOOrJHFwn9df88wMEv05e7nKyc3MFdUGSKBupNvKkofm"}],"size":3416,"noattachment":false,"key":"/github-contributors/-/github-contributors-0.4.0.tgz"},"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/github-contributors-0.4.0.tgz_1473440445935_0.9794230826664716"},"directories":{},"readme":"# github-contributors [![NPM version](https://img.shields.io/npm/v/github-contributors.svg?style=flat)](https://www.npmjs.com/package/github-contributors) [![NPM downloads](https://img.shields.io/npm/dm/github-contributors.svg?style=flat)](https://npmjs.org/package/github-contributors) [![Build Status](https://img.shields.io/travis/jonschlinkert/github-contributors.svg?style=flat)](https://travis-ci.org/jonschlinkert/github-contributors)\n\n> Generate a markdown or JSON list of contributors for a project using the GitHub API.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save github-contributors\n```\n\n## Usage\n\n```js\nvar contributors = require('github-contributors');\nvar repo = 'assemble/assemble';\nvar opts = {};\n\ncontributors(repo, opts, function(err, res) {\n  if (err) console.log(err);\n  // do stuff with res\n});\n```\n\n### Contributors\n\nThe response is an array of contributor objects with this format:\n\n```js\n[{ login: 'doowb',\n    id: 995160,\n    avatar_url: 'https://avatars.githubusercontent.com/u/995160?v=3',\n    gravatar_id: '',\n    url: 'https://api.github.com/users/doowb',\n    html_url: 'https://github.com/doowb',\n    followers_url: 'https://api.github.com/users/doowb/followers',\n    following_url: 'https://api.github.com/users/doowb/following{/other_user}',\n    gists_url: 'https://api.github.com/users/doowb/gists{/gist_id}',\n    starred_url: 'https://api.github.com/users/doowb/starred{/owner}{/repo}',\n    subscriptions_url: 'https://api.github.com/users/doowb/subscriptions',\n    organizations_url: 'https://api.github.com/users/doowb/orgs',\n    repos_url: 'https://api.github.com/users/doowb/repos',\n    events_url: 'https://api.github.com/users/doowb/events{/privacy}',\n    received_events_url: 'https://api.github.com/users/doowb/received_events',\n    type: 'User',\n    site_admin: false,\n    contributions: 577 }]\n```\n\n## authentication\n\nYou can avoid hitting the GitHub rate limit by passing a client ID and client secret on the options:\n\n```js\nvar opts = {id: process.env.CLIENT_ID, secret: process.env.CLIENT_SECRET};\ncontributors('assemble/assemble', opts, function(err, res) {\n  if (err) console.log(err);\n  // do stuff with res\n});\n```\n\n## formatted list\n\nInstead of JSON, get a markdown-formatted list by defining one of the following on `options.format`\n\n* `list`\n* `aligned`\n* `table`\n\nHere are some examples.\n\n### list\n\nContributors from [jonschlinkert/micromatch](https://github.com/jonschlinkert/micromatch)\n\n**Commits** / **Contributor**\n\n* 253 [jonschlinkert](https://github.com/jonschlinkert)\n* 4   [es128](https://github.com/es128)\n* 1   [UltCombo](https://github.com/UltCombo)\n* 1   [tomByrer](https://github.com/tomByrer)\n\n### aligned list\n\nContributors from [jonschlinkert/gray-matter](https://github.com/jonschlinkert/gray-matter)\n\n```bash\nCOMMITS / CONTRIBUTOR\n------- | -----------\n107      jonschlinkert\n7        RobLoach\n2        doowb\n1        ianstormtaylor\n```\n\n### table\n\nContributors from [assemble/assemble](https://github.com/assemble/assemble)\n\n| **Commits** | **Contributor**<br/> | \n| --- | --- |\n| 949 | [jonschlinkert](https://github.com/jonschlinkert) |\n| 577 | [doowb](https://github.com/doowb) |\n| 11 | [adjohnson916](https://github.com/adjohnson916) |\n| 7 | [Arkkimaagi](https://github.com/Arkkimaagi) |\n| 4 | [bendrucker](https://github.com/bendrucker) |\n| 2 | [avr](https://github.com/avr) |\n| 2 | [thegreatsunra](https://github.com/thegreatsunra) |\n| 2 | [StevenBlack](https://github.com/StevenBlack) |\n| 2 | [xzyfer](https://github.com/xzyfer) |\n| 2 | [ain](https://github.com/ain) |\n| 1 | [prettyboymp](https://github.com/prettyboymp) |\n| 1 | [asans](https://github.com/asans) |\n| 1 | [bauerca](https://github.com/bauerca) |\n| 1 | [jordanthomas](https://github.com/jordanthomas) |\n| 1 | [pburtchaell](https://github.com/pburtchaell) |\n| 1 | [oncletom](https://github.com/oncletom) |\n| 1 | [tomcode](https://github.com/tomcode) |\n| 1 | [tylerhowarth](https://github.com/tylerhowarth) |\n\n## About\n\n### Related projects\n\n* [get-pkgs](https://www.npmjs.com/package/get-pkgs): Get the package.json for an array of repos from the npm registry, optionally filtering properties… [more](https://github.com/jonschlinkert/get-pkgs) | [homepage](https://github.com/jonschlinkert/get-pkgs \"Get the package.json for an array of repos from the npm registry, optionally filtering properties using glob patterns.\")\n* [github-base](https://www.npmjs.com/package/github-base): JavaScript wrapper that greatly simplifies working with GitHub's API. | [homepage](https://github.com/jonschlinkert/github-base \"JavaScript wrapper that greatly simplifies working with GitHub's API.\")\n\n### Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n### Building docs\n\n_(This document was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme) (a [verb](https://github.com/verbose/verb) generator), please don't edit the readme directly. Any changes to the readme must be made in [.verb.md](.verb.md).)_\n\nTo generate the readme and API documentation with [verb](https://github.com/verbose/verb):\n\n```sh\n$ npm install -g verb verb-generate-readme && verb\n```\n\n### Running tests\n\nInstall dev dependencies:\n\n```sh\n$ npm install -d && npm test\n```\n\n### Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](http://twitter.com/jonschlinkert)\n\n### License\n\nCopyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT license](https://github.com/jonschlinkert/github-contributors/blob/master/LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.1.30, on September 09, 2016._","publish_time":1473440447469,"_cnpm_publish_time":1473440447469,"dist-tags":{"latest":"0.4.1"}}