Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/egoist/nwjs
Install nw.js prebuilts using npm (formerly node-webkit)
https://github.com/egoist/nwjs
Last synced: about 2 months ago
JSON representation
Install nw.js prebuilts using npm (formerly node-webkit)
- Host: GitHub
- URL: https://github.com/egoist/nwjs
- Owner: egoist
- License: mit
- Created: 2015-07-31T15:09:36.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2022-03-27T05:51:19.000Z (over 2 years ago)
- Last Synced: 2024-07-06T22:02:45.032Z (2 months ago)
- Language: JavaScript
- Homepage:
- Size: 37.1 KB
- Stars: 77
- Watchers: 7
- Forks: 19
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nwjs [![version](https://img.shields.io/npm/v/nwjs.svg)](https://www.npmjs.com/package/nwjs) [![npm](https://img.shields.io/npm/dm/nwjs.svg)](https://www.npmjs.com/package/nwjs)
Inspired by [electron-prebuilt](https://github.com/mafintosh/electron-prebuilt)
You can use `nwjs` as an nw.js version manager, and do things like `nw /your/app/path`
![preview](http://ooo.0o0.ooo/2016/02/01/56af0ee357dab.gif)
# Install
```bash
npm i -g nwjs
```
# Usage```bash
# Install a version
$ nw install 0.12.3# Install a SDK version
$ nw install 0.13.0-rc3-sdk# Run nw in cwd or specific any directory
$ nw .# Use another cached version
$ nw use 0.13.0-beta3# Use SDK version
$ nw use 0.13.0-rc3-sdk# List all local cached versions
$ nw ls# Use a proxy
$ http_proxy=http://127.0.0.1:8787 nw install 0.13.0-beta5# For fish shell users
$ env http_proxy=http://127.0.0.1:8787 nw install 0.13.0-beta5
```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 -hUsage: 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 nwjsOptions:
-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)
```## License
MIT © [EGOIST](https://github.com/egoist)