Skip to content

Commit

Permalink
fix: rename some content
Browse files Browse the repository at this point in the history
  • Loading branch information
ostwindli committed Mar 22, 2022
1 parent 3f058fc commit 8730f13
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 24 deletions.
43 changes: 23 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,54 +1,57 @@
# 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)
# tnwjs [![version](https://img.shields.io/npm/v/tnwjs.svg)](https://www.npmjs.com/package/tnwjs) [![npm](https://img.shields.io/npm/dm/tnwjs.svg)](https://www.npmjs.com/package/tnwjs)

> forked from <https://github.com/egoist/nwjs>. fixed some errors
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`
You can use `tnwjs` 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
## Install

```bash
npm i -g nwjs
npm i -g tnwjs
```
# Usage

## Usage

```bash
# Install a version
$ nw install 0.12.3
$ tnw install 0.12.3

# Install a SDK version
$ nw install 0.13.0-rc3-sdk
$ tnw install 0.13.0-rc3-sdk

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

# Use another cached version
$ nw use 0.13.0-beta3
$ tnw use 0.13.0-beta3

# Use SDK version
$ nw use 0.13.0-rc3-sdk
$ tnw use 0.13.0-rc3-sdk

# List all local cached versions
$ nw ls
$ tnw ls

# Use a proxy
$ http_proxy=http://127.0.0.1:8787 nw install 0.13.0-beta5
$ 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 nw install 0.13.0-beta5
$ env http_proxy=http://127.0.0.1:8787 tnw install 0.13.0-beta5
```

For all available versions to install please use `nw ls-remote`
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

```bash
$ nw -h
$ tnw -h

Usage: nw [options] [command]
Usage: tnw [options] [command]


Commands:
Expand All @@ -69,11 +72,11 @@ $ nw -h
## Programmatic usage

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

const child = spawn(nw)
const child = spawn(nw);
```

## License
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tnwjs",
"version": "2.0.0",
"version": "2.0.1",
"description": "Install nw.js prebuilts using npm",
"main": "index.js",
"scripts": {
Expand All @@ -20,14 +20,14 @@
],
"repository": {
"type": "git",
"url": "git+https://github.com/egoist/nwjs.git"
"url": "git+https://github.com/ost-forks/nwjs.git"
},
"author": "EGOIST <[email protected]>",
"license": "MIT",
"bugs": {
"url": "https://github.com/egoist/nwjs/issues"
"url": "https://github.com/ost-forks/nwjs/issues"
},
"homepage": "https://github.com/egoist/nwjs#readme",
"homepage": "https://github.com/ost-forks/nwjs#readme",
"dependencies": {
"co": "^4.6.0",
"colorful": "^2.1.0",
Expand Down

0 comments on commit 8730f13

Please sign in to comment.