repo-exist

0.0.2 • Public • Published

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

Package Sidebar

Install

npm i repo-exist

Weekly Downloads

5

Version

0.0.2

License

MIT

Last publish

Collaborators

  • bukinoshita