Comparing version 0.12.0-alpha3 to 0.12.0-rc1
{ | ||
"name": "nw", | ||
"version": "0.12.0-alpha3", | ||
"version": "0.12.0-rc1", | ||
"description": "A installer for nw.js", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -33,4 +33,5 @@ # nw [![Build Status](http://img.shields.io/travis/nwjs/npm-installer.svg)](https://travis-ci.org/nwjs/npm-installer) | ||
1. `git clone https://github.com/zcbenz/nw-sample-apps && cd nw-sample-apps` | ||
2. `npm install nw` | ||
3. `"node_modules/.bin/nw" file-explorer` | ||
2. `npm init` | ||
3. `npm install nw` | ||
4. `"node_modules/.bin/nw" file-explorer` | ||
@@ -58,6 +59,8 @@ and now you should see a file explorer demo app. | ||
To install a spcific version of nw.js use npm with the specific version: `npm install nw@0.12.0` | ||
To install a specific version of nw.js use npm with the specific version: `npm install nw@0.12.0` | ||
> *Please note:* This npm package version tracks the version of nw.js that will be installed, with an additional build number that is used for revisions to the installer. As such `0.12.0-1` and `0.12.0-2` will both install `nw.js@0.12.0` but the latter has newer changes to the installer. | ||
You may use `npm view nw versions` to view the list of available versions. | ||
## finding the path to the nw.js binary | ||
@@ -73,2 +76,22 @@ | ||
## download binaries from custom location | ||
The installer attempts to download binaries from the default location of `http://dl.nwjs.io/v`. You can override this by setting the npm config property `nwjs_urlbase` on the command line by passing the `--nwjs_urlbase` option: | ||
``` shell | ||
npm install nwjs --nwjs_urlbase=http://my.own.location/somewhere | ||
``` | ||
or adding it to your `.npmrc` file (https://www.npmjs.org/doc/files/npmrc.html): | ||
``` | ||
nwjs_urlbase=http://my.own.location/somewhere | ||
``` | ||
You can alternatively set an environment variable `NWJS_URLBASE`: | ||
``` shell | ||
export NWJS_URLBASE=http://my.own.location/somewhere | ||
``` | ||
## using a proxy with or without authentication | ||
@@ -75,0 +98,0 @@ |
@@ -20,3 +20,3 @@ #!/usr/bin/env node | ||
var url = false; | ||
var urlBase = 'http://dl.nwjs.io/v'; | ||
var urlBase = process.env.npm_config_nwjs_urlbase || process.env.NWJS_URLBASE || 'http://dl.nwjs.io/v'; | ||
@@ -23,0 +23,0 @@ // Determine download url |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
13571
110
5