/github-reserved-names

🐙 Get a list, or check if a user or organization name is reserved by GitHub

Primary LanguageJavaScriptMIT LicenseMIT

GitHub-reserved-names NPM Version

Get a list, or check if a user or organization name is reserved by GitHub

This is by no means a complete list of reserved GitHub user/organization names.

The list in this repository was gathered from several sources:

See the history page for more details and how you can help expand this list.

Oddballs

There are a few names that have been added or omitted because of their behavior, these are listed in the oddballs file.

Install

$ npm install --save github-reserved-names

Usage

const isReserved = require('github-reserved-names');

isReserved.check("settings");
//=> true

isReserved.check("google");
//=> false

isReserved.all;
// [ 400, 401, 402, ..., "trending", "watching" ]

API

.all

Type: array

Current list of gathered GitHub reserved names.

.check()

Type: function

Returns a boolean of true if the name is in the reserved list, false is not.

CLI

$ npm install --global github-reserved-names
$ github-reserved --help

  Examples
    $ github-reserved issues
    true

    $ github-reserved --all
    400
    401
    ...

  Options
    --all   Show all reserved names

License

MIT