This repository was archived by the owner on Mar 9, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathOS.cs
More file actions
38 lines (25 loc) · 1.27 KB
/
OS.cs
File metadata and controls
38 lines (25 loc) · 1.27 KB
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
36
37
38
using System;
using System.Collections.Generic;
using System.Runtime.CompilerServices;
using System.Text;
namespace NodeJS.OSModule {
[Imported]
[GlobalMethods]
[ModuleName("os")]
public static class OS {
public static string TmpDir { [ScriptName("tmpDir")] get { return null; } }
public static string Hostname { [ScriptName("hostname")] get { return null; } }
public static string Type { [ScriptName("type")] get { return null; } }
public static string Platform { [ScriptName("platform")] get { return null; } }
public static string Arch { [ScriptName("arch")] get { return null; } }
public static string Release { [ScriptName("release")] get { return null; } }
public static double Uptime { [ScriptName("uptime")] get { return 0; } }
public static double[] LoadAvg { [ScriptName("loadavg")] get { return null; } }
public static long TotalMem { [ScriptName("totalmem")] get { return 0; } }
public static long FreeMem { [ScriptName("freemem")] get { return 0; } }
public static CpuInfo[] Cpus { [ScriptName("cpus")] get { return null; } }
public static JsDictionary<string, NetworkInterfaceInfo[]> NetworkInterfaces { [ScriptName("networkInterfaces")] get { return null; } }
[IntrinsicProperty]
public static string Eol { get { return null; } }
}
}