Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

nw-package

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

nw-package

Package NW.js applications

unpublished
latest
Source
npmnpm
Version
0.3.0
Version published
Maintainers
1
Created
Source

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-package

Usage

CLI:

nw-package ./src --nwDir=./dev/nw --outDir=./pkg --platform=linux

Module:

// ESM
import { packager } from "nw-package";
// CJS
const { packager } = require("nw-package");

packager(
  "./app",
  "./dev/nw",
  "./pkg",
  "app",
);

API Reference

Methods

packager

NameTypeDefaultDescription
appDirstringFile path of user app
nwDirstringFile path of nw
outDirstringFile path of packaged app
platform"linux" | "osx" | "win"NW.js supported platforms

Contributing

Issues and PRs are welcome!

License

MIT

Keywords

nw

FAQs

Package last updated on 03 Sep 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts