Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

is-iojs

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

is-iojs - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

21

index.js

@@ -15,14 +15,17 @@ var version = process.version;

var fs = require('fs');
var path = require('path');
var temp = path.join(process.cwd(), '.is-iojs-' + Math.random());
var epath = process.execPath;
if (!!~['v1.0.0','v1.0.1'].indexOf(version)) {
var fs = require('fs');
var path = require('path');
var exec = require('child_process').exec;
!~['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);
});
var temp = path.join(process.cwd(), '.is-iojs-' + Math.random());
var epath = process.execPath;
while (!(fs.existsSync(temp)));
exec(epath + ' -h && echo "done" > ' + temp, function(err, help) {
if (!err) isIo = /iojs/m.test(help);
});
fs.unlinkSync(temp);
while (!(fs.existsSync(temp))) {}
fs.unlinkSync(temp);
}

@@ -29,0 +32,0 @@ return safeCheck = function() {

{
"name": "is-iojs",
"version": "0.2.1",
"version": "0.2.2",
"description": "Determines if runtime is iojs",

@@ -5,0 +5,0 @@ "main": "index.js",

Sorry, the diff of this file is not supported yet

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