@@ -583,6 +583,32 @@ The `MessagePort` class. See [`MessagePort`][] for more details.
583
583
584
584
This variable may appear to be global but is not. See [ ` module ` ] [ ] .
585
585
586
+ ## ` navigator `
587
+
588
+ <!-- YAML
589
+ added: REPLACEME
590
+ -->
591
+
592
+ > Stability: 1 - Experimental
593
+ >
594
+ > An implementation of the [ Navigator API] [ ] . Similar to [ ` window.navigator ` ] [ ]
595
+ > in browsers.
596
+
597
+ ### ` navigator.hardwareConcurrency `
598
+
599
+ <!-- YAML
600
+ added: REPLACEME
601
+ -->
602
+
603
+ * {number}
604
+
605
+ The navigator.hardwareConcurrency read-only property returns the number of
606
+ logical processors available to run threads on the user's computer.
607
+
608
+ ``` js
609
+ console .log (` This process is running on ${ navigator .hardwareConcurrency } ` );
610
+ ```
611
+
586
612
## ` PerformanceEntry `
587
613
588
614
<!-- YAML
@@ -998,6 +1024,7 @@ A browser-compatible implementation of [`WritableStreamDefaultWriter`][].
998
1024
999
1025
[ CommonJS module ] : modules.md
1000
1026
[ ECMAScript module ] : esm.md
1027
+ [ Navigator API ] : https://html.spec.whatwg.org/multipage/system-state.html#the-navigator-object
1001
1028
[ Web Crypto API ] : webcrypto.md
1002
1029
[ `--no-experimental-fetch` ] : cli.md#--no-experimental-fetch
1003
1030
[ `--no-experimental-global-customevent` ] : cli.md#--no-experimental-global-customevent
@@ -1057,6 +1084,7 @@ A browser-compatible implementation of [`WritableStreamDefaultWriter`][].
1057
1084
[ `setInterval` ] : timers.md#setintervalcallback-delay-args
1058
1085
[ `setTimeout` ] : timers.md#settimeoutcallback-delay-args
1059
1086
[ `structuredClone` ] : https://developer.mozilla.org/en-US/docs/Web/API/structuredClone
1087
+ [ `window.navigator` ] : https://developer.mozilla.org/en-US/docs/Web/API/Window/navigator
1060
1088
[ buffer section ] : buffer.md
1061
1089
[ built-in objects ] : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects
1062
1090
[ module system documentation ] : modules.md
0 commit comments