{"id":15293489,"url":"https://github.com/jonschlinkert/orgs","last_synced_at":"2026-02-25T12:31:51.086Z","repository":{"id":57316209,"uuid":"145293406","full_name":"jonschlinkert/orgs","owner":"jonschlinkert","description":"Get publicly available information about an organization, or for all organizations for one or more users, from the GitHub API.","archived":false,"fork":false,"pushed_at":"2018-08-19T10:30:43.000Z","size":10,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-13T14:07:40.841Z","etag":null,"topics":["api","github","javascript","js","login","node","nodejs","organizations","orgs","user"],"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/jonschlinkert.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/contributing.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-08-19T10:30:05.000Z","updated_at":"2023-09-08T17:44:03.000Z","dependencies_parsed_at":"2022-09-12T15:03:49.380Z","dependency_job_id":null,"html_url":"https://github.com/jonschlinkert/orgs","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Forgs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Forgs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Forgs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonschlinkert%2Forgs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonschlinkert","download_url":"https://codeload.github.com/jonschlinkert/orgs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248724636,"owners_count":21151561,"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":["api","github","javascript","js","login","node","nodejs","organizations","orgs","user"],"created_at":"2024-09-30T16:48:56.333Z","updated_at":"2026-02-25T12:31:51.039Z","avatar_url":"https://github.com/jonschlinkert.png","language":"JavaScript","readme":"# orgs [![NPM version](https://img.shields.io/npm/v/orgs.svg?style=flat)](https://www.npmjs.com/package/orgs) [![NPM monthly downloads](https://img.shields.io/npm/dm/orgs.svg?style=flat)](https://npmjs.org/package/orgs) [![NPM total downloads](https://img.shields.io/npm/dt/orgs.svg?style=flat)](https://npmjs.org/package/orgs)\n\n\u003e Get publicly available information about an organization, or for all organizations for one or more users, from the GitHub API.\n\nPlease consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save orgs\n```\n\n## Usage\n\n```js\nconst orgs = require('orgs');\n```\n\n## API\n\n**Params**\n\n* `users` **{String|Array}**: One or more users or organization names.\n* `options` **{Object}**\n* `returns` **{Promise}**\n\n**Example**\n\n```js\nconst orgs = require('orgs');\n\n// see github-base for other authentication options\norgs(['doowb', 'jonschlinkert'], { token: 'YOUR_GITHUB_AUTH_TOKEN' })\n  .then(orgs =\u003e {\n    // array of organization objects from the GitHub API\n    console.log(orgs);\n  })\n  .catch(console.error)l\n```\n\n### [.get](index.js#L71)\n\nGet publicly available information about the given GitHub `organization`. Equivalent to `GET /orgs/:orgname`.\n\n**Params**\n\n* `name` **{String}**: GitHub organization name.\n* `options` **{Object}**\n* `returns` **{object}**: Response object with information about the organization.\n\n**Example**\n\n```js\nconst orgs = require('orgs');\norgs.get('micromatch', { token: 'YOUR_GITHUB_AUTH_TOKEN' })\n  .then(res =\u003e console.log(res))\n  .catch(console.error);\n```\n\n### [.user](index.js#L89)\n\nGet publicly available information about the given GitHub `user`. Equivalent to `GET /users/:username`.\n\n**Params**\n\n* `user` **{String}**: GitHub username.\n* `options` **{Object}**\n* `returns` **{object}**: Response object with array of orgs on `res.orgs`.\n\n**Example**\n\n```js\nconst orgs = require('orgs');\norgs.user('doowb', { token: 'YOUR_GITHUB_AUTH_TOKEN' })\n  .then(res =\u003e console.log(res.orgs))\n  .catch(console.error);\n```\n\n### [.users](index.js#L106)\n\nGet publicly available information about all GitHub users. Equivalent to a paginated request to `GET /users`.\n\n**Params**\n\n* `options` **{Object}**\n* `returns` **{object}**: Response object with array of orgs on `res.orgs`.\n\n**Example**\n\n```js\nconst orgs = require('orgs');\norgs.users({ token: 'YOUR_GITHUB_AUTH_TOKEN' })\n  .then(res =\u003e console.log(res))\n  .catch(console.error);\n```\n\n### [.userOrgs](index.js#L123)\n\nGet an array of orgs for the given `user`. Equivalent to `GET /users/:username`.\n\n**Params**\n\n* `user` **{String}**\n* `options` **{Object}**\n* `returns` **{object}**: Response object with array of orgs on `res.orgs`.\n\n**Example**\n\n```js\nconst orgs = require('orgs');\norgs.userOrgs('doowb', { token: 'YOUR_GITHUB_AUTH_TOKEN' })\n  .then(res =\u003e console.log(res))\n  .catch(console.error);\n```\n\n### [.all](index.js#L142)\n\nGet a list of objects with information for all publicly available GitHub organizations. Equivalent to a paginated request to `GET /organizations`.\n\n**Params**\n\n* `options` **{Object}**\n* `returns` **{object}**: Response object with array of orgs on `res.orgs`.\n\n**Example**\n\n```js\nconst orgs = require('orgs');\norgs.all({ token: 'YOUR_GITHUB_AUTH_TOKEN' })\n  .then(res =\u003e console.log(res))\n  .catch(console.error);\n```\n\n## About\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eContributing\u003c/strong\u003e\u003c/summary\u003e\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\nPlease read the [contributing guide](.github/contributing.md) for advice on opening issues, pull requests, and coding standards.\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eRunning Tests\u003c/strong\u003e\u003c/summary\u003e\n\nRunning and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:\n\n```sh\n$ npm install \u0026\u0026 npm test\n```\n\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cstrong\u003eBuilding docs\u003c/strong\u003e\u003c/summary\u003e\n\n_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_\n\nTo generate the readme, run the following command:\n\n```sh\n$ npm install -g verbose/verb#dev verb-generate-readme \u0026\u0026 verb\n```\n\n\u003c/details\u003e\n\n### Author\n\n**Jon Schlinkert**\n\n* [GitHub Profile](https://github.com/jonschlinkert)\n* [Twitter Profile](https://twitter.com/jonschlinkert)\n* [LinkedIn Profile](https://linkedin.com/in/jonschlinkert)\n\n### License\n\nCopyright © 2018, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT License](LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on August 19, 2018._","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonschlinkert%2Forgs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonschlinkert%2Forgs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonschlinkert%2Forgs/lists"}