nw-package
Package NW.js applications
Installation
Using Node 14, 16 or 18:
# npm
npm install nw-package
# pnpm
pnpm add nw-package
# yarn
yarn add nw-packageUsage
CLI:
nw-package ./src --nwDir=./dev/nw --outDir=./pkg --platform=linuxModule:
// ESM
import { packager } from "nw-package";
// CJS
const { packager } = require("nw-package");
packager(
"./app",
"./dev/nw",
"./pkg",
"app",
);API Reference
Methods
packager
| Name | Type | Default | Description |
|---|---|---|---|
| appDir | string |
File path of user app | |
| nwDir | string |
File path of nw | |
| outDir | string |
File path of packaged app | |
| platform | "linux" | "osx" | "win" |
NW.js supported platforms |
Contributing
Issues and PRs are welcome!
License
MIT