juliangruber / gh-release-download

Download all assets of a GitHub release

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

gh-release-download

Download and extract all assets of a GitHub release.

screenshot

Example

Using the CLI:

$ cd ~/dev/Level/leveldown
$ gh-release-download dist/
...
$ ls dist/
...

Using the API:

const download = require('gh-release-download')

// point to your local checkout of a repository

const downloader = download({
  dir: process.env.HOME + '/dev/level/leveldown'
})

downloader.events.on('start', name => console.log(`${name}...`))
downloader.events.on('finish', name => console.log(name))

downloader
.then(() => console.log('All downloaded'))
.catch(err => console.error(err))

Installation

For CLI:

$ npm install -g gh-release-download

For API:

$ npm install gh-release-download

License

MIT

About

Download all assets of a GitHub release


Languages

Language:JavaScript 100.0%