1.0.1 • Published 8 years ago

is-github-team-repos-empty v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

is-github-team-repos-empty

Check if a GitHub team repository list is empty

npm version Build Status Test Coverage

Install

npm install --save is-github-team-repos-empty

Setup

Set up GITHUB_TOKEN environment variable with your OAuth GitHub access token.

Usage

var isGithubTeamReposEmpty = require('is-github-team-repos-empty');

isGithubTeamReposEmpty('1234567').then(function (isRepoListEmpty) {
  console.log(isRepoListEmpty);
  //=> true
});

API

isGithubTeamReposEmpty(teamId)

Returns a promise that resolves to a boolean value of whether or not a GitHub team repository list is empty.

teamId

Type: string

The ID of the GitHub team.

License

MIT © Alejandro Beltrán