blob: 4c65572470cc042ed73df13243f106c00a2d3d0b (
plain) (
blame)
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
34
35
|
// Hardcoded module "detect-libc" for linux
export function family() {
return Promise.resolve(familySync());
}
export function familySync() {
if (process.platform === "linux") {
return GLIBC;
} else {
return null;
}
}
export const GLIBC = "glibc";
export const MUSL = "musl";
export function versionAsync() {
return Promise.resolve(version());
}
export function version() {
if (process.platform === "linux") {
return "2.29";
} else {
return null;
}
}
export function isNonGlibcLinuxSync() {
return false;
}
export function isNonGlibcLinux() {
return Promise.resolve(isNonGlibcLinuxSync());
}
|