Comparing version 0.2.0 to 0.2.1
@@ -15,7 +15,8 @@ var version = process.version; | ||
var fs = require('fs'); | ||
var path = require('path'); | ||
var temp = path.join(process.cwd(), '.is-iojs-' + Math.random()); | ||
var fs = require('fs'); | ||
var path = require('path'); | ||
var temp = path.join(process.cwd(), '.is-iojs-' + Math.random()); | ||
var epath = process.execPath; | ||
!~['v1.0.0','v1.0.1'].indexOf(version) && require('child_process').exec('node -h && echo "done" > ' + temp, function(err, help) { | ||
!~['v1.0.0','v1.0.1'].indexOf(version) && require('child_process').exec(epath + ' -h && echo "done" > ' + temp, function(err, help) { | ||
if (!err) isIo = /iojs/m.test(help); | ||
@@ -22,0 +23,0 @@ }); |
{ | ||
"name": "is-iojs", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "Determines if runtime is iojs", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
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
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
23
18743