Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

is-github-user-or-org

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-github-user-or-org

Determines whether a GitHub profile is a User or an Organization

  • 1.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
15
decreased by-21.05%
Maintainers
1
Weekly downloads
 
Created
Source

is-github-user-or-org Build Status

Determines whether a GitHub profile is a User or an Organization

Install

$ npm install --save is-github-user-or-org

You 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.

Usage

const isGithubUserOrOrg = require('is-github-user-or-org')

isGithubUserOrOrg('RichardLitt')
//=> 'User'

API

isGithubUserOrOrg(input)

input

Type: string

The user or organization you want to check the type of

token

Type: token

The GitHub personal access token.

endpoint

Type: string

The GitHub enterprise endpoint.

CLI

$ npm install --global is-github-user-or-org
$ is-github-user-or-org --help

  Usage
    $ is-github-user-or-org <input>

  Options
    -t, --token A token
    -e, --endpoint A GitHub endpoint (for Enterprise)

  Examples
    $ get-github-user RichardLitt
    User
    $ get-github-user OpenSourceDesign
    Organization

License

MIT © 2017 Richard Littauer

Keywords

FAQs

Package last updated on 05 Dec 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc