@nwutils/runner
v0.2.0
Published
Run NW.js and related binaries for Linux, MacOS and Windows.
Maintainers
Readme
@nwutils/runner
Run NW.js on Linux, MacOS and Windows hosts.
Getting Started
- Install Volta
npm ito install third party dependencies
Usage
import run from "@nwutils/runner";
const nwProcess = await run({
version: "latest",
flavor: "normal",
platform: "linux",
arch: "x64",
srcDir: "./src",
cacheDir: "./cache",
argv: [],
});
nwProcess.kill();API Reference
Options
| Name | Type | Description |
| ---- | ---- | ----------- |
| version | string | Runtime version |
| flavor | "normal" \| "sdk" | Runtime flavor |
| platform | "linux" \| "osx" \| "win" | Host platform |
| arch | "ia32" \| "x64" \| "arm64" | Host architecture |
| cacheDir | string | Directory to cache NW binaries |
| argv | string[] | List of CLI arguments to be passed to NW.js. |
Contributing
External contributor
- Use Node.js standard libraries whenever possible.
- Prefer to use syncronous APIs over modern APIs which have been introduced in later versions.
Maintainer
- npm trusted publishing is used for releases
- a package is released when a maintainer creates a release note for a specific version
