nw-install
Develop NW applications
Installation
Using Node 14, 16 or 18:
// npm
npm install nw-develop
// pnpm
pnpm add nw-develop
// yarn
yarn add nw-develop
Usage
CLI:
nw-develop ./src --nwPath=./dev/nw --platform=linux
Module:
// ESM
import { develop } from "nw-install";
// CJS
const { develop } = require("nw-install");
develop(
"./src",
"./dev/nw",
"linux"
);
API Reference
Methods
develop
Name | Type | Default | Description |
---|---|---|---|
srcPath | string |
File path to user app | |
nwPath | string |
File path to NW | |
platform | "linux" | "osx" | "win" |
Platform types |
Contributing
Issues and PRs are welcome!
License
MIT