Skip to content
Check if a GitHub repo exists
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.editorconfig
.gitattributes
.gitignore
index.js
license
package.json
readme.md
test.js

readme.md

repo-exists

Check if a GitHub repo exists

See repo-exists-cli for the CLI version.

Usage

$ npm install --save repo-exists
const repoExists = require('repo-exists');

repoExists('h5bp/html5please', (error, exists) => {
	if (error) {
		throw error;
	}

	console.log(exists);
	//=> true
});

License

MIT © Arthur Verschaeve

You can’t perform that action at this time.