1.1.0 • Published 11 years ago
nw-download v1.1.0
nw-download
Download a node-webkit archive for a specific platform/version.
Usage
stream = download(platform, version)
Returns a stream of the zip or tar.gz file for this specific
platform/version combination. Accepts the following platforms:
win: Windows 32-bit (.zip)osx: Mac 32-bit (.zip)linux32: Linux 32-bit (.tar.gz)linux64: Linux 64-bit (.tar.gz)
version is optional, and will default to latest.
stream.on('progress', fn(fraction, progress, total))
Emitted periodically with the progress of the download.
fractionis a number between 0 and 1 reporting the total progress of the download.progressis the total number of bytes downloaded.totalis the total number of bytes to download.
CLI Usage
Usage: nw-download <file> {OPTIONS}
Pass a hyphen (-) for the filename to print to stdout,
otherwise saves the archive in that location.
Options:
-r, --range Specify a semver range to query
-p, --platform Specify the platform to download forLicense
MIT. See LICENSE.md for details.
