bukinoshita / repo-exist

Checks if GitHub repository exist

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

repo-exist Build Status

Checks if GitHub repository exist

Install

$ npm install --save repo-exist

Usage

const repoExist = require('repo-exist')

repoExist({ owner: 'bukinoshita', repo: 'repo-exist' })
//=> true

repoExist({ owner: 'bukinoshita', repo: 'not-a-repo' })
//=> false

API

repoExist({ owner, repo })

Returns a promise.

owner

Type: string
Required

repo

Type: string
Required

Related

License

MIT Β© Bu Kinoshita

About

Checks if GitHub repository exist

License:MIT License


Languages

Language:JavaScript 100.0%