1- # @nwutils/getter
1+ # @nwutils/runner
22
3- [ ![ npm] ( https://img.shields.io/npm/v/@nwutils/getter /latest )] ( https://www.npmjs.com/package/@nwutils/getter /v/latest )
3+ [ ![ npm] ( https://img.shields.io/npm/v/@nwutils/runner /latest )] ( https://www.npmjs.com/package/@nwutils/runner /v/latest )
44
55Download NW.js and related binaries for Linux, MacOS and Windows.
66
@@ -12,40 +12,29 @@ Download NW.js and related binaries for Linux, MacOS and Windows.
1212## Usage
1313
1414``` js
15- import get from " @nwutils/getter " ;
15+ import run from " @nwutils/runner " ;
1616
1717await get ({
1818 version: " latest" ,
1919 flavor: " normal" ,
2020 platform: " linux" ,
2121 arch: " x64" ,
22- downloadUrl: " https://dl.nwjs.io" ,
23- manifestUrl: " https://nwjs.io/versions.json" ,
2422 cacheDir: " ./cache" ,
25- cache: true ,
26- ffmpeg: false ,
27- nativeAddon: false ,
28- shaSum: true ,
2923});
3024```
3125
3226## API Reference
3327
3428Options
3529
36- | Name | Type | Description |
37- | ---- | ------- | ----------- |
38- | version | ` string \| "latest" \| "stable" ` | Runtime version |
30+ | Name | Type | Description |
31+ | ---- | ---- | ----------- |
32+ | version | ` string ` | Runtime version |
3933| flavor | ` "normal" \| "sdk" ` | Runtime flavor |
4034| platform | ` "linux" \| "osx" \| "win" ` | Host platform |
4135| arch | ` "ia32" \| "x64" \| "arm64" ` | Host architecture |
42- | downloadUrl | ` "https://dl.nwjs.io" \| "https://npm.taobao.org/mirrors/nwjs" \| https://npmmirror.com/mirrors/nwjs \| "https://github.com/corwin-of-amber/nw.js/releases/" ` | Download server. Supports file systems too (for example ` file:///home/user/nwjs_mirror ` ) |
43- | manifestUrl | ` "https://nwjs.io/versions.json" \| "https://raw.githubusercontent.com/nwutils/nw-builder/main/src/util/osx.arm.versions.json" ` | Versions manifest |
4436| cacheDir | ` string ` | Directory to cache NW binaries |
45- | cache | ` boolean ` | If true the existing cache is used. Otherwise it removes and redownloads it. |
46- | ffmpeg | ` boolean ` | If true the chromium ffmpeg is replaced by community version with proprietary codecs. |
47- | nativeAddon | ` boolean ` | If true download NW.js Node headers. |
48- | shaSum | ` boolean ` | Flag to enable/disable shasum checks. |
37+ | argv | ` string[] ` | List of CLI arguments to be passed to NW.js. |
4938
5039## Contributing
5140
0 commit comments