New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

nw

Package Overview
Dependencies
Maintainers
3
Versions
679
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nw - npm Package Compare versions

Comparing version 0.14.2 to 0.14.3-sdk

2

package.json
{
"name": "nw",
"version": "0.14.2",
"version": "0.14.3-sdk",
"description": "A installer for nw.js",

@@ -5,0 +5,0 @@ "repository": {

@@ -64,2 +64,28 @@ # nw [![Build Status](http://img.shields.io/travis/nwjs/npm-installer.svg)](https://travis-ci.org/nwjs/npm-installer)

## install a specific build type of nw.js
nw.js has three build types: `normal`, `sdk` and `nacl`. To install a specific build type you may set npm config property `nwjs_build_type`, environment variable `NWJS_BUILD_TYPE` or pass command line option `--nwjs_build_type`:
``` shell
npm install nwjs --nwjs_build_type=sdk
```
Setting option in `.npmrc` file (https://www.npmjs.org/doc/files/npmrc.html):
```
nwjs_build_type=sdk
```
Setting environment variable `NWJS_BUILD_TYPE`:
``` shell
export NWJS_BUILD_TYPE=sdk
```
You can alternatively install `sdk` build by specifying `-sdk` suffix in version:
``` shell
npm install nwjs@0.13.3-sdk
```
## finding the path to the nw.js binary

@@ -66,0 +92,0 @@

@@ -15,3 +15,4 @@ #!/usr/bin/env node

var buildSDK = false;
var buildType = process.env.npm_config_nwjs_build_type || process.env.NWJS_BUILD_TYPE || 'normal';
var v = semver.parse(require('../package.json').version);

@@ -26,11 +27,14 @@ var version = [v.major, v.minor, v.patch].join('.');

}
if ( version.slice(-4) === '-sdk' ){
version = version.slice(0, -4);
buildSDK = true;
buildType = 'sdk';
} else if ( version.slice(-3) === 'sdk' ){
version = version.slice(0, -3);
buildSDK = true;
buildType = 'sdk';
}
var url = false;
var urlBase = process.env.npm_config_nwjs_urlbase || process.env.NWJS_URLBASE || 'http://dl.nwjs.io/v';
var buildTypeSuffix = buildType === 'normal' ? '' : ('-' + buildType);

@@ -40,9 +44,9 @@ // Determine download url

case 'win32':
url = urlBase + version + '/nwjs-' + (buildSDK ? 'sdk-' : '') + 'v' + version + '-win-' + process.arch +'.zip';
url = urlBase + version + '/nwjs' + buildTypeSuffix + '-v' + version + '-win-' + process.arch +'.zip';
break;
case 'darwin':
url = urlBase + version + '/nwjs-' + (buildSDK ? 'sdk-' : '') + 'v' + version + '-osx-' + process.arch + '.zip';
url = urlBase + version + '/nwjs' + buildTypeSuffix + '-v' + version + '-osx-' + process.arch + '.zip';
break;
case 'linux':
url = urlBase + version + '/nwjs-' + (buildSDK ? 'sdk-' : '') + 'v' + version + '-linux-' + process.arch + '.tar.gz';
url = urlBase + version + '/nwjs' + buildTypeSuffix + '-v' + version + '-linux-' + process.arch + '.tar.gz';
break;

@@ -49,0 +53,0 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc