1 |
3a515b92
|
cagy
|
exports.endianness = function () { return 'LE' };
|
2 |
|
|
|
3 |
|
|
exports.hostname = function () {
|
4 |
|
|
if (typeof location !== 'undefined') {
|
5 |
|
|
return location.hostname
|
6 |
|
|
}
|
7 |
|
|
else return '';
|
8 |
|
|
};
|
9 |
|
|
|
10 |
|
|
exports.loadavg = function () { return [] };
|
11 |
|
|
|
12 |
|
|
exports.uptime = function () { return 0 };
|
13 |
|
|
|
14 |
|
|
exports.freemem = function () {
|
15 |
|
|
return Number.MAX_VALUE;
|
16 |
|
|
};
|
17 |
|
|
|
18 |
|
|
exports.totalmem = function () {
|
19 |
|
|
return Number.MAX_VALUE;
|
20 |
|
|
};
|
21 |
|
|
|
22 |
|
|
exports.cpus = function () { return [] };
|
23 |
|
|
|
24 |
|
|
exports.type = function () { return 'Browser' };
|
25 |
|
|
|
26 |
|
|
exports.release = function () {
|
27 |
|
|
if (typeof navigator !== 'undefined') {
|
28 |
|
|
return navigator.appVersion;
|
29 |
|
|
}
|
30 |
|
|
return '';
|
31 |
|
|
};
|
32 |
|
|
|
33 |
|
|
exports.networkInterfaces
|
34 |
|
|
= exports.getNetworkInterfaces
|
35 |
|
|
= function () { return {} };
|
36 |
|
|
|
37 |
|
|
exports.arch = function () { return 'javascript' };
|
38 |
|
|
|
39 |
|
|
exports.platform = function () { return 'browser' };
|
40 |
|
|
|
41 |
|
|
exports.tmpdir = exports.tmpDir = function () {
|
42 |
|
|
return '/tmp';
|
43 |
|
|
};
|
44 |
|
|
|
45 |
|
|
exports.EOL = '\n';
|
46 |
|
|
|
47 |
|
|
exports.homedir = function () {
|
48 |
|
|
return '/'
|
49 |
|
|
};
|