mirror of
https://github.com/m-lamonaca/dev-notes.git
synced 2025-05-14 23:24:46 +00:00
Upload of pre-existing files
This commit is contained in:
commit
4c21152830
150 changed files with 730703 additions and 0 deletions
20
Node.js/Standard Packages/os.md
Normal file
20
Node.js/Standard Packages/os.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
# OS Module
|
||||
|
||||
## Information
|
||||
|
||||
```js
|
||||
os.arch(); // CPU Architecture
|
||||
os.platform(); // OS platform (aix, darwin, freebsd, linux, openbsd, sunos, win32)
|
||||
os.type(); // OS name (Linux, Windows_NT, )
|
||||
|
||||
os.release(); // OS release number
|
||||
os.version(); // OS kernel version
|
||||
|
||||
os.tmpdir(); // OS Temp directory
|
||||
os.homedir(); // CUrrent user home directory
|
||||
|
||||
os.hostname(); // PC Name
|
||||
|
||||
os.cpus(); // Array of CPU info
|
||||
os.networkInterfaces(); // Array of Network Interfacecs info
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue