Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hughsk/nw-download
Download a node-webkit archive for a specific platform/version
https://github.com/hughsk/nw-download
Last synced: 12 days ago
JSON representation
Download a node-webkit archive for a specific platform/version
- Host: GitHub
- URL: https://github.com/hughsk/nw-download
- Owner: hughsk
- License: other
- Created: 2014-10-12T15:28:44.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-10-12T23:41:40.000Z (about 10 years ago)
- Last Synced: 2024-10-17T16:41:24.225Z (22 days ago)
- Language: JavaScript
- Size: 133 KB
- Stars: 7
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# nw-download
![](http://img.shields.io/badge/stability-experimental-orange.svg?style=flat)
![](http://img.shields.io/npm/v/nw-download.svg?style=flat)
![](http://img.shields.io/npm/dm/nw-download.svg?style=flat)
![](http://img.shields.io/npm/l/nw-download.svg?style=flat)Download a node-webkit archive for a specific platform/version.
## Usage
[![NPM](https://nodei.co/npm/nw-download.png)](https://nodei.co/npm/nw-download/)
### `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.
* `fraction` is a number between 0 and 1 reporting the total progress of the
download.
* `progress` is the total number of bytes downloaded.
* `total` is the total number of bytes to download.## CLI Usage
```
Usage: nw-download {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 for
```## License
MIT. See [LICENSE.md](http://github.com/hughsk/nw-download/blob/master/LICENSE.md) for details.