download-github-repo

Download and extract a GitHub repository from node.

Usage no npm install needed!

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

README

download-github-repo

Download and extract a GitHub repository from node.

Installation

$ npm install download-github-repo

API

download(repo, destination, callback)

Download GitHub repo (eg. ianstormtaylor/router) to a destination folder and callback. Defaults to the master branch, but you can specify a branch or tag as a URL fragment like ianstormtaylor/router#my-branch.

License

MIT