diff --git a/.eslintrc.js b/.eslintrc.js index 5a63c79371c984..43e41026b2007e 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -328,6 +328,7 @@ module.exports = { DecompressionStream: 'readable', fetch: 'readable', FormData: 'readable', + navigator: 'readable', ReadableStream: 'readable', ReadableStreamDefaultReader: 'readable', ReadableStreamBYOBReader: 'readable', diff --git a/doc/api/globals.md b/doc/api/globals.md index 8285064c2e25e4..83aa62c86ea790 100644 --- a/doc/api/globals.md +++ b/doc/api/globals.md @@ -583,6 +583,41 @@ The `MessagePort` class. See [`MessagePort`][] for more details. This variable may appear to be global but is not. See [`module`][]. +## `Navigator` + + + +> Stability: 1 - Experimental + +An implementation of the [Navigator API][]. + +## `navigator` + + + +> Stability: 1 - Experimental + +An implementation of [`window.navigator`][]. + +### `navigator.hardwareConcurrency` + + + +* {number} + +The `navigator.hardwareConcurrency` read-only property returns the number of +logical processors available to the current Node.js instance. + +```js +console.log(`This process is running on ${navigator.hardwareConcurrency}`); +``` + ## `PerformanceEntry`