{"id":15426674,"url":"https://github.com/richardlitt/is-github-user-or-org","last_synced_at":"2025-04-28T13:48:02.109Z","repository":{"id":18414647,"uuid":"84236670","full_name":"RichardLitt/is-github-user-or-org","owner":"RichardLitt","description":"Determines whether a GitHub profile is a User or an Organization","archived":false,"fork":false,"pushed_at":"2022-12-30T03:33:49.000Z","size":612,"stargazers_count":3,"open_issues_count":14,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-16T20:43:20.894Z","etag":null,"topics":["api","cli","github","github-api","javascript","organization","user"],"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/RichardLitt.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":"2017-03-07T19:16:00.000Z","updated_at":"2023-03-04T04:55:55.000Z","dependencies_parsed_at":"2023-01-13T19:49:10.050Z","dependency_job_id":null,"html_url":"https://github.com/RichardLitt/is-github-user-or-org","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/RichardLitt%2Fis-github-user-or-org","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RichardLitt%2Fis-github-user-or-org/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RichardLitt%2Fis-github-user-or-org/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RichardLitt%2Fis-github-user-or-org/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RichardLitt","download_url":"https://codeload.github.com/RichardLitt/is-github-user-or-org/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251321964,"owners_count":21570828,"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","cli","github","github-api","javascript","organization","user"],"created_at":"2024-10-01T17:57:21.104Z","updated_at":"2025-04-28T13:48:02.048Z","avatar_url":"https://github.com/RichardLitt.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# is-github-user-or-org [![Build Status](https://travis-ci.org/RichardLitt/is-github-user-or-org.svg?branch=master)](https://travis-ci.org/RichardLitt/is-github-user-or-org)\n\n\u003e Determines whether a GitHub profile is a User or an Organization\n\n## Install\n\n```\n$ npm install --save is-github-user-or-org\n```\n\nYou also need to get a GitHub application token: https://github.com/settings/tokens. Provide it in the CLI or set it as `$GITHUB_TOKEN` somewhere in your bash_profile.\n\n## Usage\n\n```js\nconst isGithubUserOrOrg = require('is-github-user-or-org')\n\nisGithubUserOrOrg('RichardLitt')\n//=\u003e 'User'\n```\n\n\n## API\n\n### isGithubUserOrOrg(input)\n\n#### input\n\nType: `string`\n\nThe user or organization you want to check the type of\n\n#### token\n\nType: token\n\nThe GitHub personal access token.\n\n#### endpoint\n\nType: `string`\n\nThe GitHub enterprise endpoint.\n\n## CLI\n\n```\n$ npm install --global is-github-user-or-org\n```\n\n```\n$ is-github-user-or-org --help\n\n  Usage\n    $ is-github-user-or-org \u003cinput\u003e\n\n  Options\n    -t, --token A token\n    -e, --endpoint A GitHub endpoint (for Enterprise)\n\n  Examples\n    $ get-github-user RichardLitt\n    User\n    $ get-github-user OpenSourceDesign\n    Organization\n```\n\n## License\n\n[MIT](license) © 2017 [Richard Littauer](http://burntfen.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frichardlitt%2Fis-github-user-or-org","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frichardlitt%2Fis-github-user-or-org","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frichardlitt%2Fis-github-user-or-org/lists"}