{"id":16492594,"url":"https://github.com/sandoche/github-contributors-file","last_synced_at":"2026-01-28T10:34:45.069Z","repository":{"id":34291461,"uuid":"174710791","full_name":"sandoche/Github-contributors-file","owner":"sandoche","description":"A javascript library to get individual file contributors from Github","archived":false,"fork":false,"pushed_at":"2022-12-09T15:58:26.000Z","size":1287,"stargazers_count":0,"open_issues_count":20,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-08T19:05:36.472Z","etag":null,"topics":["contributors","github-contributions","github-contributors","javascript-library","npm","npm-module"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sandoche.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":null,"patreon":"sandoche","open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":"https://www.paypal.me/kanbanote"}},"created_at":"2019-03-09T15:24:28.000Z","updated_at":"2020-08-26T20:49:18.000Z","dependencies_parsed_at":"2023-01-15T05:56:31.091Z","dependency_job_id":null,"html_url":"https://github.com/sandoche/Github-contributors-file","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sandoche%2FGithub-contributors-file","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sandoche%2FGithub-contributors-file/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sandoche%2FGithub-contributors-file/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sandoche%2FGithub-contributors-file/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sandoche","download_url":"https://codeload.github.com/sandoche/Github-contributors-file/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246899663,"owners_count":20851898,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["contributors","github-contributions","github-contributors","javascript-library","npm","npm-module"],"created_at":"2024-10-11T14:06:29.534Z","updated_at":"2026-01-28T10:34:45.042Z","avatar_url":"https://github.com/sandoche.png","language":"JavaScript","funding_links":["https://patreon.com/sandoche","https://www.paypal.me/kanbanote","https://www.patreon.com/sandoche"],"categories":[],"sub_categories":[],"readme":"# Github contributors file\n[![GitHub](https://img.shields.io/github/license/mashape/apistatus.svg)](/LICENSE)\n[![Medium Badge](https://badgen.net/badge/icon/medium?icon=medium\u0026label)](https://medium.com/@sandoche)\n[![Twitter: sandochee](https://img.shields.io/twitter/follow/sandochee.svg?style=social)](https://twitter.com/sandochee)\n\nA javascript library to get individual file contributors from Github.\n\n## Feature\n\n* Get the list of contributors for a specific file of a Github Repository\n* The list contain the name, the id, the url of each contributors\n\n## How to use\n\n### Installation\n```\nnpm install github-contributors-file\n```\n\n### Using it\n\n* Import getContributors\n* Use the following function `getContributors(owner, repositoryName, filePath, token).then(callbackFunction)`\n* The github token is optional (but it will increase the api limitations)\n* See examples below\n\n```js\nimport getContributors from 'github-contributors-file';\n\ngetContributors('sandoche', 'Jekyll-webpack-boilerplate', '_i18n/en.yml').then((contributors) =\u003e {\n  console.log(contributors);\n  /*\n  This will return\n  [\n    {\n      avatar_url: \"https://avatars2.githubusercontent.com/u/3635348?v=4\"\n      login: \"sandoche\"\n      url: \"https://github.com/sandoche\"\n    }\n  ]\n  */\n});\n\n\ngetContributors('naming-convention', 'naming-convention-design', 'README.md').then((contributors) =\u003e {\n  console.log(contributors);\n  /*\n  This will return\n  [\n    {\n      avatar_url: \"https://avatars3.githubusercontent.com/u/6988069?v=4\"\n      login: \"patriciamayo\"\n      url: \"https://github.com/patriciamayo\"\n    },\n    {\n      avatar_url: \"https://avatars2.githubusercontent.com/u/3635348?v=4\"\n      login: \"sandoche\"\n      url: \"https://github.com/sandoche\"\n    }\n  ]\n  */\n})\n```\n\n## Scripts\n\n* `yarn build` or `npm run build` - produces production version of your library under the `lib` folder\n* `yarn dev` or `npm run dev` - produces development version of your library and runs a watcher\n* `yarn test` or `npm run test` - it runs the tests :)\n* `yarn test:watch` or `npm run test:watch` - same as above but in a watch mode\n\n## ⭐️ Show your support\nPlease ⭐️ this repository if this project helped you!\n\n\u003ca href=\"https://www.patreon.com/sandoche\"\u003e[![patreon.png](https://c5.patreon.com/external/logo/become_a_patron_button.png)](https://www.patreon.com/sandoche)\u003c/a\u003e\n\n## 🍺 Buy me a beer \nIf you like this project, feel free to donate:\n* PayPal: https://www.paypal.me/kanbanote\n* Bitcoin: 19JiNZ1LkMaz57tewqJaTg2hQWH4RgW4Yp\n* Ethereum: 0xded81fa4624e05339924355fe3504ba9587d5419\n* Monero: 43jqzMquW2q989UKSrB2YbeffhmJhbYb2Yxu289bv7pLRh4xVgMKj5yTd52iL6x1dvCYs9ERg5biHYxMjGkpSTs6S2jMyJn\n* Motive: MOTIV-25T5-SD65-V7LJ-BBWRD (Get Motive Now: https://motive.network)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsandoche%2Fgithub-contributors-file","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsandoche%2Fgithub-contributors-file","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsandoche%2Fgithub-contributors-file/lists"}