prebuilt-download
Downloads prebuilt binaries (or arbitrary files, for that matter) according to a URL template string that can be parameterized by architecture, platform and version.
Most of the code is taken from electron-download, and java-download.
install
npm install prebuilt-download
api
download(opts, cb(err, path))
Downloads to specified binary, optionally using a cached version instead (see electron-download for additional options)
usage
In the simplest case, you only need to pass in filename and url template strings that will be populated with OS values:
var download = var filename = 'electron-v{version}-{platform}-{arch}.zip'
In other cases, you might need to pass in transformation functions that modify the OS values:
var filename = 'docker-{version}.tgz'})
license
MIT