1.0.3 • Published 2 years ago

@licq/tnwjs v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@licq/tnwjs version npm

You can use @licq/tnwjs as an nw.js version manager, and do things like tnw /your/app/path

Install

npm i -g @licq/tnwjs

Usage

# Install a version
$ tnw install 0.64.0

# Install a SDK version
$ tnw install 0.64.0-sdk

# Run tnw in cwd or specific any directory
$ tnw .

# Use SDK version
$ tnw use 0.64.0-sdk

# Show the nw version currently in use
$ tnw current

# List all local cached versions
$ tnw ls

# List all remote versions
$ tnw ls-remote

# Use a proxy
$ http_proxy=http://127.0.0.1:8989 tnw install 0.64.0-sdk

# Remove a specific version of nwjs
$ tnw r 0.64.1

API

const spawn = require("child_process").spawn;
// this returns the path to nwjs excutable
const nw = require("@licq/tnwjs");

const child = spawn(nw);