Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

ost-forks/nwjs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

79 Commits

Repository files navigation

tnwjs version npm

forked from https://github.com/egoist/nwjs. fixed some errors

Inspired by electron-prebuilt

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

preview

Install

npm i -g tnwjs

Usage

# Install a version
$ tnw install 0.12.3
# Install a SDK version
$ tnw install 0.13.0-rc3-sdk
# Run tnw in cwd or specific any directory
$ tnw .
# Use another cached version
$ tnw use 0.13.0-beta3
# Use SDK version
$ tnw use 0.13.0-rc3-sdk
# Show the nw version currently in use
$ tnw current
# List all local cached versions
$ tnw ls
# Use a proxy
$ http_proxy=http://127.0.0.1:8787 tnw install 0.13.0-beta5
# For fish shell users
$ env http_proxy=http://127.0.0.1:8787 tnw install 0.13.0-beta5

For all available versions to install please use tnw ls-remote

Tested on Windows 7(32), Windows 10(32), Ubuntu 14.04(32), OSX El Capitan (64).

Help

$ tnw -h
 Usage: tnw [options] [command]
 Commands:
 * Run nwjs in a directory
 install|i <version> Install an nwjs version
 use|u <version> Set an active nwjs version
 list|ls List local cached nwjs versions
 list-remote|ls-remote List all available nwjs versions from remote
 remove|r <version> Remove a specific version of nwjs
 Options:
 -h, --help output usage information
 -V, --version output the version number

Programmatic usage

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

License

MIT © EGOIST

About

Install nw.js prebuilts using npm (formerly node-webkit)

Resources

License

Stars

Watchers

Forks

Packages

Contributors

Languages

  • JavaScript 100.0%

AltStyle によって変換されたページ (->オリジナル) /