Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions doc/api/async_context.md
Original file line number Diff line number Diff line change
Expand Up @@ -497,7 +497,7 @@ asyncResource.triggerAsyncId();

* `type` {string} The type of async event.
* `options` {Object}
* `triggerAsyncId` {number} The ID of the execution context that created this
* `triggerAsyncId` {integer} The ID of the execution context that created this
async event. **Default:** `executionAsyncId()`.
* `requireManualDestroy` {boolean} If set to `true`, disables `emitDestroy`
when the object is garbage collected. This usually does not need to be set
Expand Down Expand Up @@ -614,11 +614,11 @@ never be called.

### `asyncResource.asyncId()`

* Returns: {number} The unique `asyncId` assigned to the resource.
* Returns: {integer} The unique `asyncId` assigned to the resource.

### `asyncResource.triggerAsyncId()`

* Returns: {number} The same `triggerAsyncId` that is passed to the
* Returns: {integer} The same `triggerAsyncId` that is passed to the
`AsyncResource` constructor.

<a id="async-resource-worker-pool"></a>
Expand Down
16 changes: 8 additions & 8 deletions doc/api/async_hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -305,9 +305,9 @@ instance is destroyed.

#### `init(asyncId, type, triggerAsyncId, resource)`

* `asyncId` {number} A unique ID for the async resource.
* `asyncId` {integer} A unique ID for the async resource.
* `type` {string} The type of the async resource.
* `triggerAsyncId` {number} The unique ID of the async resource in whose
* `triggerAsyncId` {integer} The unique ID of the async resource in whose
execution context this async resource was created.
* `resource` {Object} Reference to the resource representing the async
operation, needs to be released during _destroy_.
Expand Down Expand Up @@ -585,7 +585,7 @@ TCPSERVERWRAP(5)

#### `before(asyncId)`

* `asyncId` {number}
* `asyncId` {integer}

When an asynchronous operation is initiated (such as a TCP server receiving a
new connection) or completes (such as writing data to disk) a callback is
Expand All @@ -602,7 +602,7 @@ it only once.

#### `after(asyncId)`

* `asyncId` {number}
* `asyncId` {integer}

Called immediately after the callback specified in `before` is completed.

Expand All @@ -612,7 +612,7 @@ handler runs.

#### `destroy(asyncId)`

* `asyncId` {number}
* `asyncId` {integer}

Called after the resource corresponding to `asyncId` is destroyed. It is also
called asynchronously from the embedder API `emitDestroy()`.
Expand All @@ -631,7 +631,7 @@ tracking of `Promise` instances via the garbage collector.
added: v8.6.0
-->

* `asyncId` {number}
* `asyncId` {integer}

Called when the `resolve` function passed to the `Promise` constructor is
invoked (either directly or through other means of resolving a promise).
Expand Down Expand Up @@ -760,7 +760,7 @@ changes:
description: Renamed from `currentId`.
-->

* Returns: {number} The `asyncId` of the current execution context. Useful to
* Returns: {integer} The `asyncId` of the current execution context. Useful to
track when something calls.

```mjs
Expand Down Expand Up @@ -806,7 +806,7 @@ See the section on [promise execution tracking][].

### `async_hooks.triggerAsyncId()`

* Returns: {number} The ID of the resource responsible for calling the callback
* Returns: {integer} The ID of the resource responsible for calling the callback
that is currently being executed.

```js
Expand Down
8 changes: 4 additions & 4 deletions doc/api/buffer.md
Original file line number Diff line number Diff line change
Expand Up @@ -548,8 +548,8 @@ added:
- v14.18.0
-->

* `start` {number} The starting index.
* `end` {number} The ending index.
* `start` {integer} The starting index.
* `end` {integer} The ending index.
* `type` {string} The content-type for the new `Blob`

Creates and returns a new `Blob` containing a subset of this `Blob` objects
Expand Down Expand Up @@ -5132,7 +5132,7 @@ added:
to `'native'`, line endings in string source parts will be converted to
the platform native line-ending as specified by `require('node:os').EOL`.
* `type` {string} The File content-type.
* `lastModified` {number} The last modified date of the file.
* `lastModified` {integer} The last modified date of the file.
**Default:** `Date.now()`.

### `file.name`
Expand All @@ -5155,7 +5155,7 @@ added:
- v18.13.0
-->

* Type: {number}
* Type: {integer}

The last modified date of the `File`.

Expand Down
62 changes: 31 additions & 31 deletions doc/api/child_process.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,14 +195,14 @@ changes:
`'/bin/sh'` on Unix, `process.env.ComSpec` on Windows.
* `signal` {AbortSignal} allows aborting the child process using an
AbortSignal.
* `timeout` {number} **Default:** `0`
* `maxBuffer` {number} Largest amount of data in bytes allowed on stdout or
* `timeout` {integer} **Default:** `0`
* `maxBuffer` {integer} Largest amount of data in bytes allowed on stdout or
stderr. If exceeded, the child process is terminated and any output is
truncated. See caveat at [`maxBuffer` and Unicode][].
**Default:** `1024 * 1024`.
* `killSignal` {string|integer} **Default:** `'SIGTERM'`
* `uid` {number} Sets the user identity of the process (see setuid(2)).
* `gid` {number} Sets the group identity of the process (see setgid(2)).
* `uid` {integer} Sets the user identity of the process (see setuid(2)).
* `gid` {integer} Sets the group identity of the process (see setgid(2)).
* `windowsHide` {boolean} Hide the subprocess console window that would
normally be created on Windows systems. **Default:** `false`.
* `callback` {Function} called with the output when process terminates.
Expand Down Expand Up @@ -375,14 +375,14 @@ changes:
* `cwd` {string|URL} Current working directory of the child process.
* `env` {Object} Environment key-value pairs. **Default:** `process.env`.
* `encoding` {string} **Default:** `'utf8'`
* `timeout` {number} **Default:** `0`
* `maxBuffer` {number} Largest amount of data in bytes allowed on stdout or
* `timeout` {integer} **Default:** `0`
* `maxBuffer` {integer} Largest amount of data in bytes allowed on stdout or
stderr. If exceeded, the child process is terminated and any output is
truncated. See caveat at [`maxBuffer` and Unicode][].
**Default:** `1024 * 1024`.
* `killSignal` {string|integer} **Default:** `'SIGTERM'`
* `uid` {number} Sets the user identity of the process (see setuid(2)).
* `gid` {number} Sets the group identity of the process (see setgid(2)).
* `uid` {integer} Sets the user identity of the process (see setuid(2)).
* `gid` {integer} Sets the group identity of the process (see setgid(2)).
* `windowsHide` {boolean} Hide the subprocess console window that would
normally be created on Windows systems. **Default:** `false`.
* `windowsVerbatimArguments` {boolean} No quoting or escaping of arguments is
Expand Down Expand Up @@ -547,7 +547,7 @@ changes:
* `execPath` {string} Executable used to create the child process.
* `execArgv` {string\[]} List of string arguments passed to the executable.
**Default:** `process.execArgv`.
* `gid` {number} Sets the group identity of the process (see setgid(2)).
* `gid` {integer} Sets the group identity of the process (see setgid(2)).
* `serialization` {string} Specify the kind of serialization used for sending
messages between processes. Possible values are `'json'` and `'advanced'`.
See [Advanced serialization][] for more details. **Default:** `'json'`.
Expand All @@ -564,10 +564,10 @@ changes:
When this option is provided, it overrides `silent`. If the array variant
is used, it must contain exactly one item with value `'ipc'` or an error
will be thrown. For instance `[0, 1, 2, 'ipc']`.
* `uid` {number} Sets the user identity of the process (see setuid(2)).
* `uid` {integer} Sets the user identity of the process (see setuid(2)).
* `windowsVerbatimArguments` {boolean} No quoting or escaping of arguments is
done on Windows. Ignored on Unix. **Default:** `false`.
* `timeout` {number} In milliseconds the maximum amount of time the process
* `timeout` {integer} In milliseconds the maximum amount of time the process
is allowed to run. **Default:** `undefined`.
* Returns: {ChildProcess}

Expand Down Expand Up @@ -700,8 +700,8 @@ changes:
* `detached` {boolean} Prepare child process to run independently of
its parent process. Specific behavior depends on the platform (see
[`options.detached`][]).
* `uid` {number} Sets the user identity of the process (see setuid(2)).
* `gid` {number} Sets the group identity of the process (see setgid(2)).
* `uid` {integer} Sets the user identity of the process (see setuid(2)).
* `gid` {integer} Sets the group identity of the process (see setgid(2)).
* `serialization` {string} Specify the kind of serialization used for sending
messages between processes. Possible values are `'json'` and `'advanced'`.
See [Advanced serialization][] for more details. **Default:** `'json'`.
Expand All @@ -716,7 +716,7 @@ changes:
normally be created on Windows systems. **Default:** `false`.
* `signal` {AbortSignal} allows aborting the child process using an
AbortSignal.
* `timeout` {number} In milliseconds the maximum amount of time the process
* `timeout` {integer} In milliseconds the maximum amount of time the process
is allowed to run. **Default:** `undefined`.
* `killSignal` {string|integer} The signal value to be used when the spawned
process will be killed by timeout or abort signal. **Default:** `'SIGTERM'`.
Expand Down Expand Up @@ -1179,13 +1179,13 @@ changes:
be output to the parent process' stderr unless `stdio` is specified.
**Default:** `'pipe'`.
* `env` {Object} Environment key-value pairs. **Default:** `process.env`.
* `uid` {number} Sets the user identity of the process (see setuid(2)).
* `gid` {number} Sets the group identity of the process (see setgid(2)).
* `timeout` {number} In milliseconds the maximum amount of time the process
* `uid` {integer} Sets the user identity of the process (see setuid(2)).
* `gid` {integer} Sets the group identity of the process (see setgid(2)).
* `timeout` {integer} In milliseconds the maximum amount of time the process
is allowed to run. **Default:** `undefined`.
* `killSignal` {string|integer} The signal value to be used when the spawned
process will be killed. **Default:** `'SIGTERM'`.
* `maxBuffer` {number} Largest amount of data in bytes allowed on stdout or
* `maxBuffer` {integer} Largest amount of data in bytes allowed on stdout or
stderr. If exceeded, the child process is terminated. See caveat at
[`maxBuffer` and Unicode][]. **Default:** `1024 * 1024`.
* `encoding` {string} The encoding used for all stdio inputs and outputs.
Expand Down Expand Up @@ -1309,13 +1309,13 @@ changes:
* `shell` {string} Shell to execute the command with. See
[Shell requirements][] and [Default Windows shell][]. **Default:**
`'/bin/sh'` on Unix, `process.env.ComSpec` on Windows.
* `uid` {number} Sets the user identity of the process. (See setuid(2)).
* `gid` {number} Sets the group identity of the process. (See setgid(2)).
* `timeout` {number} In milliseconds the maximum amount of time the process
* `uid` {integer} Sets the user identity of the process. (See setuid(2)).
* `gid` {integer} Sets the group identity of the process. (See setgid(2)).
* `timeout` {integer} In milliseconds the maximum amount of time the process
is allowed to run. **Default:** `undefined`.
* `killSignal` {string|integer} The signal value to be used when the spawned
process will be killed. **Default:** `'SIGTERM'`.
* `maxBuffer` {number} Largest amount of data in bytes allowed on stdout or
* `maxBuffer` {integer} Largest amount of data in bytes allowed on stdout or
stderr. If exceeded, the child process is terminated and any output is
truncated. See caveat at [`maxBuffer` and Unicode][].
**Default:** `1024 * 1024`.
Expand Down Expand Up @@ -1383,13 +1383,13 @@ changes:
* `stdio` {string|Array} Child's stdio configuration.
See [`child_process.spawn()`][]'s [`stdio`][]. **Default:** `'pipe'`.
* `env` {Object} Environment key-value pairs. **Default:** `process.env`.
* `uid` {number} Sets the user identity of the process (see setuid(2)).
* `gid` {number} Sets the group identity of the process (see setgid(2)).
* `timeout` {number} In milliseconds the maximum amount of time the process
* `uid` {integer} Sets the user identity of the process (see setuid(2)).
* `gid` {integer} Sets the group identity of the process (see setgid(2)).
* `timeout` {integer} In milliseconds the maximum amount of time the process
is allowed to run. **Default:** `undefined`.
* `killSignal` {string|integer} The signal value to be used when the spawned
process will be killed. **Default:** `'SIGTERM'`.
* `maxBuffer` {number} Largest amount of data in bytes allowed on stdout or
* `maxBuffer` {integer} Largest amount of data in bytes allowed on stdout or
stderr. If exceeded, the child process is terminated and any output is
truncated. See caveat at [`maxBuffer` and Unicode][].
**Default:** `1024 * 1024`.
Expand All @@ -1405,11 +1405,11 @@ changes:
* `windowsHide` {boolean} Hide the subprocess console window that would
normally be created on Windows systems. **Default:** `false`.
* Returns: {Object}
* `pid` {number} Pid of the child process.
* `pid` {integer} Pid of the child process.
* `output` {Array} Array of results from stdio output.
* `stdout` {Buffer|string} The contents of `output[1]`.
* `stderr` {Buffer|string} The contents of `output[2]`.
* `status` {number|null} The exit code of the subprocess, or `null` if the
* `status` {integer|null} The exit code of the subprocess, or `null` if the
subprocess terminated due to a signal.
* `signal` {string|null} The signal used to kill the subprocess, or `null` if
the subprocess did not terminate due to a signal.
Expand Down Expand Up @@ -1448,7 +1448,7 @@ instances of `ChildProcess`.
added: v0.7.7
-->

* `code` {number} The exit code if the child process exited on its own, or
* `code` {integer} The exit code if the child process exited on its own, or
`null` if the child process terminated due to a signal.
* `signal` {string} The signal by which the child process was terminated, or
`null` if the child process did not terminated due to a signal.
Expand Down Expand Up @@ -1533,7 +1533,7 @@ See also [`subprocess.kill()`][] and [`subprocess.send()`][].
added: v0.1.90
-->

* `code` {number} The exit code if the child process exited on its own, or
* `code` {integer} The exit code if the child process exited on its own, or
`null` if the child process terminated due to a signal.
* `signal` {string} The signal by which the child process was terminated, or
`null` if the child process did not terminated due to a signal.
Expand Down Expand Up @@ -1673,7 +1673,7 @@ If the child process is still running, the field will be `null`.
added: v0.1.90
-->

* `signal` {number|string}
* `signal` {integer|string}
* Returns: {boolean}

The `subprocess.kill()` method sends a signal to the child process. If no
Expand Down
14 changes: 7 additions & 7 deletions doc/api/cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ Within a worker, `process.on('error')` may also be used.
added: v0.11.2
-->

* `code` {number} The exit code, if it exited normally.
* `code` {integer} The exit code, if it exited normally.
* `signal` {string} The name of the signal (e.g. `'SIGHUP'`) that caused
the process to be killed.

Expand Down Expand Up @@ -679,7 +679,7 @@ added: v0.7.9
-->

* `worker` {cluster.Worker}
* `code` {number} The exit code, if it exited normally.
* `code` {integer} The exit code, if it exited normally.
* `signal` {string} The name of the signal (e.g. `'SIGHUP'`) that caused
the process to be killed.

Expand Down Expand Up @@ -937,11 +937,11 @@ changes:
cluster module relies on IPC to function, this configuration must contain an
`'ipc'` entry. When this option is provided, it overrides `silent`. See
[`child_process.spawn()`][]'s [`stdio`][].
* `uid` {number} Sets the user identity of the process. (See setuid(2).)
* `gid` {number} Sets the group identity of the process. (See setgid(2).)
* `inspectPort` {number|Function} Sets inspector port of worker.
This can be a number, or a function that takes no arguments and returns a
number. By default each worker gets its own port, incremented from the
* `uid` {integer} Sets the user identity of the process. (See setuid(2).)
* `gid` {integer} Sets the group identity of the process. (See setgid(2).)
* `inspectPort` {integer|Function} Sets inspector port of worker.
This can be a integer, or a function that takes no arguments and returns a
integer. By default each worker gets its own port, incremented from the
primary's `process.debugPort`.
* `windowsHide` {boolean} Hide the forked processes console window that would
normally be created on Windows systems. **Default:** `false`.
Expand Down
4 changes: 2 additions & 2 deletions doc/api/console.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ changes:
**Default:** `'auto'`.
* `inspectOptions` {Object} Specifies options that are passed along to
[`util.inspect()`][].
* `groupIndentation` {number} Set group indentation.
* `groupIndentation` {integer} Set group indentation.
**Default:** `2`.

Creates a new `Console` with one or two writable stream instances. `stdout` is a
Expand Down Expand Up @@ -309,7 +309,7 @@ added: v0.1.101
* `options` {Object}
* `showHidden` {boolean} If `true` then the object's non-enumerable and symbol
properties will be shown too. **Default:** `false`.
* `depth` {number} Tells [`util.inspect()`][] how many times to recurse while
* `depth` {integer} Tells [`util.inspect()`][] how many times to recurse while
formatting the object. This is useful for inspecting large complicated
objects. To make it recurse indefinitely, pass `null`. **Default:** `2`.
* `colors` {boolean} If `true`, then the output will be styled with ANSI color
Expand Down
Loading
Loading