https://github.com/dianmorales/contributors
Retrieve a list of contributors and a number of total contributions made to the differents repositories of the selected Organization
https://github.com/dianmorales/contributors
github
Last synced: about 2 months ago
JSON representation
Retrieve a list of contributors and a number of total contributions made to the differents repositories of the selected Organization
- Host: GitHub
- URL: https://github.com/dianmorales/contributors
- Owner: dianmorales
- Created: 2020-12-29T13:16:30.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-08-21T11:20:12.000Z (almost 4 years ago)
- Last Synced: 2025-10-10T09:50:01.231Z (9 months ago)
- Topics: github
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/@dianmora/contributors
- Size: 538 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Contributors
By @dianmorales
Retrieve a list of contributors and a number of total contributions made to the differents repositories of the selected Organization
import contributors from '@dianmora/contributors';
### Example
```
import fs from 'fs/promises';
import path from 'path';
const token = process.env.TOKEN;
const contributors = require('@dianmora/contributors');
const excludebots = ['foo'];
(async () => {
try {
const result = await contributors({
token: token,
organization: 'org',
excludebots,
allowFork: false,
allowPrivateRepo: false,
});
await fs.writeFile('./foo.json', JSON.stringify(result, null, 4));
} catch (err) {
console.error('error on update', err);
process.exit(1);
}
})();
```
MIT