Comparing version 1.0.2 to 1.0.3
@@ -5,3 +5,4 @@ const fs = require('fs'); | ||
const exec = require('child_process').exec; | ||
const nodepath = process.env._; | ||
// this is from the env of npm, not node | ||
const nodePath = process.env.NODE; | ||
const version = process.versions.v8; | ||
@@ -11,3 +12,3 @@ const tmpfile = path.join(__dirname, version+'.flags.json'); | ||
if (!fs.existsSync(tmpfile)) { | ||
exec(nodepath+' --v8-options', function (execErr, result) { | ||
exec(nodePath+' --v8-options', function (execErr, result) { | ||
var flags; | ||
@@ -14,0 +15,0 @@ if (execErr) { |
{ | ||
"name": "v8flags", | ||
"description": "Get available v8 flags.", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"homepage": "https://github.com/tkellen/node-v8flags", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -29,1 +29,2 @@ # v8flags [![Build Status](https://secure.travis-ci.org/tkellen/node-v8flags.png)](http://travis-ci.org/tkellen/node-v8flags) | ||
* 2014-11-17 - v1.0.2 - get node executable from `process.env._` | ||
* 2014-11-17 - v1.0.3 - get node executable during npm install via `process.env.NODE` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
4506
45
30