Closed insin closed 8 years ago
For !win32, this version check presumes a 0.x version of Node.js and will give false positives on 4.x and 5.x.
var fd = process.platform !== 'win32' && +process.version.substr(3) < 12 ? fs.openSync('/dev/tty', 'rs') : process.stdin.fd;
Potential alternative:
Number(/v(\d+\.\d+)/.exec(process.version)[1]) < 0.12
:+1: that seems pretty reasonable, PR?
fixed
For !win32, this version check presumes a 0.x version of Node.js and will give false positives on 4.x and 5.x.
Potential alternative: