Nodejs os: Difference between revisions
From wikinotes
(Created page with " = Documentation = <blockquote> {| class="wikitable" |- | os docs || https://nodejs.org/api/os.html |- |} </blockquote><!-- Documentation -->") |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 8: | Line 8: | ||
|} | |} | ||
</blockquote><!-- Documentation --> | </blockquote><!-- Documentation --> | ||
= Machine Info = | |||
<blockquote> | |||
<syntaxhighlight lang="javascript"> | |||
os.arch() // 'x64' | |||
os.cpus() // [ { ..cpuinfo.. }, {...}, ... ] | |||
os.freemem() | |||
os.totalmem() | |||
os.hostname() // hostname | |||
os.networkInterfaces() // { "lo1": [ ... ] } | |||
</syntaxhighlight> | |||
</blockquote><!-- Machine Info --> | |||
= Operating System = | |||
<blockquote> | |||
<syntaxhighlight lang="javascript"> | |||
os.platform() // linux, freebsd, darwin, win32, ... | |||
os.version() | |||
os.release() | |||
os.tmpdir() | |||
</syntaxhighlight> | |||
</blockquote><!-- Operating System --> |
Latest revision as of 20:59, 31 July 2021
Documentation
os docs https://nodejs.org/api/os.html
Machine Info
os.arch() // 'x64' os.cpus() // [ { ..cpuinfo.. }, {...}, ... ] os.freemem() os.totalmem() os.hostname() // hostname os.networkInterfaces() // { "lo1": [ ... ] }
Operating System
os.platform() // linux, freebsd, darwin, win32, ... os.version() os.release() os.tmpdir()