blob: 947699f63b89f80d6f8089a13a8ec024c139e260 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
switch (require('os').platform()) {
case "win32":
document.write("Windows");
break
case "aix":
document.write("AIX");
break
case "android":
document.write("Android");
break
case "cygwin":
document.write("Cygwin");
break
case "darwin":
document.write("macOS");
break
case "freebsd":
document.write("FreeBSD");
break
case "linux":
document.write("GNU/Linux");
break
case "netbsd":
document.write("NetBSD");
break
case "openbsd":
document.write("OpenBSD");
break
case "sunos":
document.write("Solaris");
break
}
|