mirror of
https://github.com/oven-sh/bun
synced 2026-02-10 02:48:50 +00:00
65 lines
1.1 KiB
JavaScript
65 lines
1.1 KiB
JavaScript
export const endianness = function () {
|
|
return "LE";
|
|
};
|
|
|
|
export const hostname = function () {
|
|
if (typeof location !== "undefined") {
|
|
return location.hostname;
|
|
} else return "";
|
|
};
|
|
|
|
export const loadavg = function () {
|
|
return [];
|
|
};
|
|
|
|
export const uptime = function () {
|
|
return 0;
|
|
};
|
|
|
|
export const freemem = function () {
|
|
return Number.MAX_VALUE;
|
|
};
|
|
|
|
export const totalmem = function () {
|
|
return Number.MAX_VALUE;
|
|
};
|
|
|
|
export const cpus = function () {
|
|
return [];
|
|
};
|
|
|
|
export const type = function () {
|
|
return "Browser";
|
|
};
|
|
|
|
export const release = function () {
|
|
if (typeof navigator !== "undefined") {
|
|
return navigator.appVersion;
|
|
}
|
|
return "";
|
|
};
|
|
|
|
export const getNetworkInterfaces = function () {
|
|
return {};
|
|
};
|
|
export const networkInterfaces = getNetworkInterfaces;
|
|
|
|
export const arch = function () {
|
|
return "javascript";
|
|
};
|
|
|
|
export const platform = function () {
|
|
return "browser";
|
|
};
|
|
|
|
export const tmpdir = function () {
|
|
return "/tmp";
|
|
};
|
|
export const tmpDir = tmpdir;
|
|
|
|
export const EOL = "\n";
|
|
|
|
export const homedir = function () {
|
|
return "/";
|
|
};
|