repo-exists

Check if a GitHub repo exists

Usage no npm install needed!

<script type="module">
  import repoExists from 'https://cdn.skypack.dev/repo-exists';
</script>

README

repo-exists Build Status

Check if a GitHub repo exists

See repo-exists-cli for the CLI version.

Usage

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

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

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

License

MIT © Arthur Verschaeve