https://github.com/bukinoshita/repo-exist
Checks if GitHub repository exist
https://github.com/bukinoshita/repo-exist
checker git github javascript nodejs repository
Last synced: 6 months ago
JSON representation
Checks if GitHub repository exist
- Host: GitHub
- URL: https://github.com/bukinoshita/repo-exist
- Owner: bukinoshita
- License: mit
- Created: 2017-06-18T23:45:02.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2022-12-06T21:46:31.000Z (over 3 years ago)
- Last Synced: 2025-08-09T15:05:14.904Z (11 months ago)
- Topics: checker, git, github, javascript, nodejs, repository
- Language: JavaScript
- Homepage:
- Size: 113 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# repo-exist [](https://travis-ci.org/bukinoshita/repo-exist)
> Checks if GitHub repository exist
## Install
```
$ npm install --save repo-exist
```
## Usage
```js
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
- [git-synced](https://github.com/bukinoshita/git-synced) — 🎐 Keep a fork up to date
- [repo-exist](https://github.com/bukinoshita/repo-exist) — Checks if GitHub repository exist
- [gopn](https://github.com/bukinoshita/gopn) — Open GitHub repositories
- [is-github-repo](https://github.com/bukinoshita/is-github-repo) — Checks if string is a git repository
- [git-url-prettify](https://github.com/bukinoshita/git-url-prettify) — Prettify git url
- [git-url-uglify](https://github.com/bukinoshita/git-url-uglify) — Uglify git url
- [del-git-index](https://github.com/bukinoshita/del-git-index) — Safely delete index.lock of the current project
## License
MIT © [Bu Kinoshita](https://bukinoshita.io)