"use strict"; var os = os = require('os'); var semver = require('semver'); function garanteeSemverFormat(version) { if (version.split('.').length === 2) { version += '.0'; } return version; } exports.isLessThanWin8 = function () { return os.type() === 'Windows_NT' && semver.satisfies(garanteeSemverFormat(os.release()), '<6.2.9200'); }