@licq/tnwjs
Version:
52 lines (34 loc) • 1.05 kB
Markdown
@licq/tnwjs [](https://www.npmjs.com/package/@licq/tnwjs) [](https://www.npmjs.com/package/@licq/tnwjs)
You can use `@licq/tnwjs` as an nw.js version manager, and do things like `tnw /your/app/path`
# Install
```sh
npm i -g @licq/tnwjs
```
# Usage
```sh
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
```js
const spawn = require("child_process").spawn;
// this returns the path to nwjs excutable
const nw = require("@licq/tnwjs");
const child = spawn(nw);
```