Skip to content

Commit 0f28253

Browse files
committed
Add information about navigator
1 parent a1bc673 commit 0f28253

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

docs/7_system/hardware.md

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Uptime, memory and CPUs can be retrieved on any OS using
88
[`process.memoryUsage()`](https://nodejs.org/api/process.html#process_process_memoryusage),
99
[`os.cpus()`](https://nodejs.org/api/os.html#os_os_cpus),
1010
[`os.availableParallelism()`](https://nodejs.org/api/os.html#osavailableparallelism),
11+
[`navigator.hardwareConcurrency`](https://nodejs.org/api/globals.html#navigatorhardwareconcurrency),
1112
[`process.cpuUsage()`](https://nodejs.org/api/process.html#process_process_cpuusage_previousvalue).
1213
and
1314
[`process.resourceUsage()`](https://nodejs.org/api/all.html#process_process_resourceusage).

docs/7_system/os_identification.md

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ identification methods but those are rarely needed:
2323
returns the CPU architecture, e.g. `arm` or `x64`.
2424
- [`os.endianness()`](https://nodejs.org/api/os.html#os_os_endianness) returns
2525
the CPU endianness, i.e. `BE` or `LE`.
26+
- [`navigator.platform`](https://nodejs.org/api/globals.html#navigatorplatform)
27+
can also be used, which combines `process.platform` and `process.arch`.
2628

2729
Some projects allow retrieving:
2830

docs/summary.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,8 @@
144144

145145
## 🎛️ [System](7_system/README.md)
146146

147-
- Use [`os`](https://nodejs.org/api/os.html) Node.js core module when needed. If
147+
- Use [`os`](https://nodejs.org/api/os.html) Node.js core module and
148+
[`navigator`](https://nodejs.org/api/globals.html#navigator) when needed. If
148149
it lacks some information, use
149150
[`systeminformation`](https://github.com/sebhildebrandt/systeminformation)
150151
instead.

0 commit comments

Comments
 (0)