npm install nwjsInspired by electron-prebuilt
You can use nwjs as an nw.js version manager, and do things like nw /your/app/path
``bash`
npm i -g nwjsUsage
`bashInstall a version
$ nw install 0.12.3
For all available versions to install please use
nw ls-remote_Tested on Windows 7(32), Windows 10(32), Ubuntu 14.04(32), OSX El Capitan (64)._
Help
`bash
$ nw -h Usage: nw [options] [command]
Commands:
* Run nwjs in a directory
install|i Install an nwjs version
use|u 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 Remove a specific version of nwjs
Options:
-h, --help output usage information
-V, --version output the version number
`Programmatic usage
`js
const spawn = require('child_process').spawn
// this returns the path to nwjs excutable
const nw = require('nwjs')const child = spawn(nw)
``MIT © EGOIST