Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download
80677 views
1
'use strict';
2
3
var execSync = require('child_process').execSync;
4
5
module.exports = (function () {
6
if (!execSync) {
7
return false;
8
}
9
/**
10
* @TODO: Make some reliable test for v1.0.0 and v1.0.1 versions
11
*/
12
if (~[ 'v1.0.0', 'v1.0.1' ].indexOf(process.version)) {
13
return true;
14
}
15
16
return /iojs\.org/.test(execSync('"' + process.execPath + '" -h', { encoding: 'ascii' }));
17
})();
18
19