@@ -567,6 +567,33 @@ The `MessagePort` class. See [`MessagePort`][] for more details.
567
567
568
568
This variable may appear to be global but is not. See [ ` module ` ] [ ] .
569
569
570
+ ## ` navigator `
571
+
572
+ <!-- YAML
573
+ added: REPLACEME
574
+ -->
575
+
576
+ > Stability: 1 - Experimental
577
+ >
578
+ > An implementation of the [ Navigator API] [ ] . Similar to [ ` window.navigator ` ] [ ]
579
+ > in browsers.
580
+
581
+ ### ` navigator.platform `
582
+
583
+ <!-- YAML
584
+ added: REPLACEME
585
+ -->
586
+
587
+ * {string}
588
+
589
+ A string identifying the operating system platform on which the Node.js process
590
+ is running. For example, it returns 'Linux' on Linux, 'Darwin' on macOS, and
591
+ 'Win32' on Windows.
592
+
593
+ ``` js
594
+ console .log (` This process is running on ${ navigator .platform } ` );
595
+ ```
596
+
570
597
## ` PerformanceEntry `
571
598
572
599
<!-- YAML
@@ -980,6 +1007,7 @@ added: v18.0.0
980
1007
981
1008
A browser-compatible implementation of [ ` WritableStreamDefaultWriter ` ] [ ] .
982
1009
1010
+ [ Navigator API ] : https://html.spec.whatwg.org/multipage/system-state.html#the-navigator-object
983
1011
[ Web Crypto API ] : webcrypto.md
984
1012
[ `--no-experimental-fetch` ] : cli.md#--no-experimental-fetch
985
1013
[ `--no-experimental-global-customevent` ] : cli.md#--no-experimental-global-customevent
@@ -1037,6 +1065,7 @@ A browser-compatible implementation of [`WritableStreamDefaultWriter`][].
1037
1065
[ `setInterval` ] : timers.md#setintervalcallback-delay-args
1038
1066
[ `setTimeout` ] : timers.md#settimeoutcallback-delay-args
1039
1067
[ `structuredClone` ] : https://developer.mozilla.org/en-US/docs/Web/API/structuredClone
1068
+ [ `window.navigator` ] : https://developer.mozilla.org/en-US/docs/Web/API/Window/navigator
1040
1069
[ buffer section ] : buffer.md
1041
1070
[ built-in objects ] : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects
1042
1071
[ module system documentation ] : modules.md
0 commit comments