{"id":15698974,"url":"https://github.com/doowb/update-contributors","last_synced_at":"2026-03-14T22:14:10.207Z","repository":{"id":57387092,"uuid":"44338108","full_name":"doowb/update-contributors","owner":"doowb","description":"Update contributors property in package.json with current github contributors.","archived":false,"fork":false,"pushed_at":"2015-11-17T16:36:51.000Z","size":0,"stargazers_count":6,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-09T02:16:25.648Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/doowb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-15T18:45:12.000Z","updated_at":"2018-03-12T16:27:34.000Z","dependencies_parsed_at":"2022-09-15T03:02:03.419Z","dependency_job_id":null,"html_url":"https://github.com/doowb/update-contributors","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doowb%2Fupdate-contributors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doowb%2Fupdate-contributors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doowb%2Fupdate-contributors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/doowb%2Fupdate-contributors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/doowb","download_url":"https://codeload.github.com/doowb/update-contributors/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253176443,"owners_count":21866143,"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":[],"created_at":"2024-10-03T19:36:56.687Z","updated_at":"2026-03-14T22:14:05.188Z","avatar_url":"https://github.com/doowb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# update-contributors [![NPM version](https://badge.fury.io/js/update-contributors.svg)](http://badge.fury.io/js/update-contributors)  [![Build Status](https://travis-ci.org/doowb/update-contributors.svg)](https://travis-ci.org/doowb/update-contributors)\n\n\u003e Update contributors property in package.json with current github contributors.\n\n## CLI\n\n```sh\n$ npm install -g update-contributors\n```\n\nAfter globably installing, run `update-contrib` at the commandline from a repository.\nThis will add any contributors found on github to the `contributors` array inside `package.json`.\n\n**Warning** the `repository` property needs to be in the `package.json` following one of the github formats found in the [npm docs](https://docs.npmjs.com/files/package.json#repository)\n\n```sh\n$ update-contrib\n```\n\n## Update\n\nWhen installed globally, [update-contributors](https://github.com/doowb/update-contributors) will work with [update](https://github.com/update/update) and run automatically.\n\n```sh\n$ update\n```\n\n## Usage\n\nInstall with [npm](https://www.npmjs.com/)\n\n```sh\n$ npm i update-contributors --save\n```\n\n```js\nvar update = require('update-contributors');\n```\n\n## API\n\n### [update](index.js#L35)\n\nPulldown github contributors and update the `contributors` property in the provided package.json object.\n\n**Params**\n\n* `pkg` **{Object}**: Object representing the package.json to update.\n* `options` **{Object}**: Options to use for github authentication.\n* `options.creds` **{Object}**: Github credentials. May be a token or a username and password. If execuled [ask-for-github-auth](https://github.com/doowb/ask-for-github-auth) will be used.\n* `options.stringify` **{Boolean}**: When set to `false` the contributors will be objects in the `contributors` array. Defaults to `true`.\n* `cb` **{Function}**: Callback function that will get an `err` when an error happens or a `results` with the updated package.json object.\n\n**Example**\n\n```js\nvar pkg = require('./package.json');\nupdate(pkg, function (err, results) {\n  if (err) return console.error(err);\n  console.log(reults);\n  //=\u003e updated package.json object\n});\n```\n\n## Related projects\n\n* [github-base](https://www.npmjs.com/package/github-base): Base methods for creating node.js apps that work with the GitHub API. | [homepage](https://github.com/jonschlinkert/github-base)\n* [github-contributors](https://www.npmjs.com/package/github-contributors): Generate a markdown or JSON list of contributors for a project using the GitHub API. | [homepage](https://github.com/jonschlinkert/github-contributors)\n* [stringify-author](https://www.npmjs.com/package/stringify-author): Stringify an authors object to `name \u003cemail\u003e (url)`. | [homepage](https://github.com/jonschlinkert/stringify-author)\n\n## Running tests\n\nInstall dev dependencies:\n\n```sh\n$ npm i -d \u0026\u0026 npm test\n```\n\n## Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/doowb/update-contributors/issues/new).\n\n## Author\n\n**Brian Woodward**\n\n+ [github/doowb](https://github.com/doowb)\n+ [twitter/doowb](http://twitter.com/doowb)\n\n## License\n\nCopyright © 2015 Brian Woodward\nReleased under the MIT license.\n\n***\n\n_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on November 17, 2015._","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoowb%2Fupdate-contributors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoowb%2Fupdate-contributors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoowb%2Fupdate-contributors/lists"}