MCPcopy
hub / github.com/electerm/electerm / isWindows7OrEarlier

Function isWindows7OrEarlier

npm/install.js:97–101  ·  view source on GitHub ↗
(platform, release)

Source from the content-addressed store, hash-verified

95// ---------------------------------------------------------------------------
96
97function isWindows7OrEarlier (platform, release) {
98 if (platform !== 'win32') return false
99 const [major, minor] = release.split('.').map(Number)
100 return major < 10 && (major < 6 || (major === 6 && minor <= 1))
101}
102
103function isMacOS10 (platform, release) {
104 if (platform !== 'darwin') return false

Callers 3

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected