prebuild-install
Advanced tools
Comparing version 5.3.1 to 5.3.2
{ | ||
"name": "prebuild-install", | ||
"version": "5.3.1", | ||
"version": "5.3.2", | ||
"description": "A command line tool to easily install prebuilt binaries for multiple version of node/iojs on a specific platform", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -64,3 +64,3 @@ var path = require('path') | ||
function getHostMirrorUrl (opts) { | ||
var propName = 'npm_config_' + (opts.pkg.name || '').replace(/-/g, '_') + '_binary_host' | ||
var propName = 'npm_config_' + (opts.pkg.name || '').replace(/[^a-zA-Z0-9]/g, '_') + '_binary_host' | ||
return process.env[propName] || process.env[propName + '_mirror'] | ||
@@ -67,0 +67,0 @@ } |
23855