| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 756c7dd commit 1b6b5e7
37 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1499,7 +1499,7 @@ console.log(Buffer.isEncoding('')); | |||
| 1499 | 1499 | added: v0.11.3 | |
| 1500 | 1500 | --> | |
| 1501 | 1501 | ||
| 1502 | - * {integer} **Default:** `8192` | ||
| 1502 | + * Type: {integer} **Default:** `8192` | ||
| 1503 | 1503 | ||
| 1504 | 1504 | This is the size (in bytes) of pre-allocated internal `Buffer` instances used | |
| 1505 | 1505 | for pooling. This value may be modified. | |
@@ -1556,7 +1556,7 @@ console.log(buf.toString('utf8')); | |||
| 1556 | 1556 | ||
| 1557 | 1557 | ### `buf.buffer` | |
| 1558 | 1558 | ||
| 1559 | - * {ArrayBuffer} The underlying `ArrayBuffer` object based on which this `Buffer` | ||
| 1559 | + * Type: {ArrayBuffer} The underlying `ArrayBuffer` object based on which this `Buffer` | ||
| 1560 | 1560 | object is created. | |
| 1561 | 1561 | ||
| 1562 | 1562 | This `ArrayBuffer` is not guaranteed to correspond exactly to the original | |
@@ -1584,7 +1584,7 @@ console.log(buffer.buffer === arrayBuffer); | |||
| 1584 | 1584 | ||
| 1585 | 1585 | ### `buf.byteOffset` | |
| 1586 | 1586 | ||
| 1587 | - * {integer} The `byteOffset` of the `Buffer`'s underlying `ArrayBuffer` object. | ||
| 1587 | + * Type: {integer} The `byteOffset` of the `Buffer`'s underlying `ArrayBuffer` object. | ||
| 1588 | 1588 | ||
| 1589 | 1589 | When setting `byteOffset` in `Buffer.from(ArrayBuffer, byteOffset, length)`, | |
| 1590 | 1590 | or sometimes when allocating a `Buffer` smaller than `Buffer.poolSize`, the | |
@@ -2425,7 +2425,7 @@ If `value` is an empty string or empty `Buffer`, `byteOffset` will be returned. | |||
| 2425 | 2425 | added: v0.1.90 | |
| 2426 | 2426 | --> | |
| 2427 | 2427 | ||
| 2428 | - * {integer} | ||
| 2428 | + * Type: {integer} | ||
| 2429 | 2429 | ||
| 2430 | 2430 | Returns the number of bytes in `buf`. | |
| 2431 | 2431 | ||
@@ -5217,7 +5217,7 @@ added: | |||
| 5217 | 5217 | - v18.15.0 | |
| 5218 | 5218 | --> | |
| 5219 | 5219 | ||
| 5220 | - * input {Buffer | ArrayBuffer | TypedArray} The input to validate. | ||
| 5220 | + * `input` {Buffer | ArrayBuffer | TypedArray} The input to validate. | ||
| 5221 | 5221 | * Returns: {boolean} | |
| 5222 | 5222 | ||
| 5223 | 5223 | This function returns `true` if `input` contains only valid ASCII-encoded data, | |
@@ -5233,7 +5233,7 @@ added: | |||
| 5233 | 5233 | - v18.14.0 | |
| 5234 | 5234 | --> | |
| 5235 | 5235 | ||
| 5236 | - * input {Buffer | ArrayBuffer | TypedArray} The input to validate. | ||
| 5236 | + * `input` {Buffer | ArrayBuffer | TypedArray} The input to validate. | ||
| 5237 | 5237 | * Returns: {boolean} | |
| 5238 | 5238 | ||
| 5239 | 5239 | This function returns `true` if `input` contains only valid UTF-8-encoded data, | |
@@ -5247,7 +5247,7 @@ Throws if the `input` is a detached array buffer. | |||
| 5247 | 5247 | added: v0.5.4 | |
| 5248 | 5248 | --> | |
| 5249 | 5249 | ||
| 5250 | - * {integer} **Default:** `50` | ||
| 5250 | + * Type: {integer} **Default:** `50` | ||
| 5251 | 5251 | ||
| 5252 | 5252 | Returns the maximum number of bytes that will be returned when | |
| 5253 | 5253 | `buf.inspect()` is called. This can be overridden by user modules. See | |
@@ -5259,7 +5259,7 @@ Returns the maximum number of bytes that will be returned when | |||
| 5259 | 5259 | added: v3.0.0 | |
| 5260 | 5260 | --> | |
| 5261 | 5261 | ||
| 5262 | - * {integer} The largest size allowed for a single `Buffer` instance. | ||
| 5262 | + * Type: {integer} The largest size allowed for a single `Buffer` instance. | ||
| 5263 | 5263 | ||
| 5264 | 5264 | An alias for [`buffer.constants.MAX_LENGTH`][]. | |
| 5265 | 5265 | ||
@@ -5269,7 +5269,7 @@ An alias for [`buffer.constants.MAX_LENGTH`][]. | |||
| 5269 | 5269 | added: v3.0.0 | |
| 5270 | 5270 | --> | |
| 5271 | 5271 | ||
| 5272 | - * {integer} The largest length allowed for a single `string` instance. | ||
| 5272 | + * Type: {integer} The largest length allowed for a single `string` instance. | ||
| 5273 | 5273 | ||
| 5274 | 5274 | An alias for [`buffer.constants.MAX_STRING_LENGTH`][]. | |
| 5275 | 5275 | ||
@@ -5383,7 +5383,7 @@ changes: | |||
| 5383 | 5383 | 2<sup>32</sup> - 1 on 64-bit architectures. | |
| 5384 | 5384 | --> | |
| 5385 | 5385 | ||
| 5386 | - * {integer} The largest size allowed for a single `Buffer` instance. | ||
| 5386 | + * Type: {integer} The largest size allowed for a single `Buffer` instance. | ||
| 5387 | 5387 | ||
| 5388 | 5388 | On 32-bit architectures, this value currently is 2<sup>30</sup> - 1 (about 1 | |
| 5389 | 5389 | GiB). | |
@@ -5400,7 +5400,7 @@ This value is also available as [`buffer.kMaxLength`][]. | |||
| 5400 | 5400 | added: v8.2.0 | |
| 5401 | 5401 | --> | |
| 5402 | 5402 | ||
| 5403 | - * {integer} The largest length allowed for a single `string` instance. | ||
| 5403 | + * Type: {integer} The largest length allowed for a single `string` instance. | ||
| 5404 | 5404 | ||
| 5405 | 5405 | Represents the largest `length` that a `string` primitive can have, counted | |
| 5406 | 5406 | in UTF-16 code units. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1602,7 +1602,7 @@ changes: | |||
| 1602 | 1602 | description: The object no longer accidentally exposes native C++ bindings. | |
| 1603 | 1603 | --> | |
| 1604 | 1604 | ||
| 1605 | - * {Object} A pipe representing the IPC channel to the child process. | ||
| 1605 | + * Type: {Object} A pipe representing the IPC channel to the child process. | ||
| 1606 | 1606 | ||
| 1607 | 1607 | The `subprocess.channel` property is a reference to the child's IPC channel. If | |
| 1608 | 1608 | no IPC channel exists, this property is `undefined`. | |
@@ -1631,7 +1631,7 @@ running, and lets it finish even while the channel is open. | |||
| 1631 | 1631 | added: v0.7.2 | |
| 1632 | 1632 | --> | |
| 1633 | 1633 | ||
| 1634 | - * {boolean} Set to `false` after `subprocess.disconnect()` is called. | ||
| 1634 | + * Type: {boolean} Set to `false` after `subprocess.disconnect()` is called. | ||
| 1635 | 1635 | ||
| 1636 | 1636 | The `subprocess.connected` property indicates whether it is still possible to | |
| 1637 | 1637 | send and receive messages from a child process. When `subprocess.connected` is | |
@@ -1660,7 +1660,7 @@ within the child process to close the IPC channel as well. | |||
| 1660 | 1660 | ||
| 1661 | 1661 | ### `subprocess.exitCode` | |
| 1662 | 1662 | ||
| 1663 | - * {integer} | ||
| 1663 | + * Type: {integer} | ||
| 1664 | 1664 | ||
| 1665 | 1665 | The `subprocess.exitCode` property indicates the exit code of the child process. | |
| 1666 | 1666 | If the child process is still running, the field will be `null`. | |
@@ -1783,7 +1783,7 @@ Calls [`subprocess.kill()`][] with `'SIGTERM'`. | |||
| 1783 | 1783 | added: v0.5.10 | |
| 1784 | 1784 | --> | |
| 1785 | 1785 | ||
| 1786 | - * {boolean} Set to `true` after `subprocess.kill()` is used to successfully | ||
| 1786 | + * Type: {boolean} Set to `true` after `subprocess.kill()` is used to successfully | ||
| 1787 | 1787 | send a signal to the child process. | |
| 1788 | 1788 | ||
| 1789 | 1789 | The `subprocess.killed` property indicates whether the child process | |
@@ -1796,7 +1796,7 @@ does not indicate that the child process has been terminated. | |||
| 1796 | 1796 | added: v0.1.90 | |
| 1797 | 1797 | --> | |
| 1798 | 1798 | ||
| 1799 | - * {integer|undefined} | ||
| 1799 | + * Type: {integer|undefined} | ||
| 1800 | 1800 | ||
| 1801 | 1801 | Returns the process identifier (PID) of the child process. If the child process | |
| 1802 | 1802 | fails to spawn due to errors, then the value is `undefined` and `error` is | |
@@ -2094,21 +2094,21 @@ connection to the child. | |||
| 2094 | 2094 | ||
| 2095 | 2095 | ### `subprocess.signalCode` | |
| 2096 | 2096 | ||
| 2097 | - * {string|null} | ||
| 2097 | + * Type: {string|null} | ||
| 2098 | 2098 | ||
| 2099 | 2099 | The `subprocess.signalCode` property indicates the signal received by | |
| 2100 | 2100 | the child process if any, else `null`. | |
| 2101 | 2101 | ||
| 2102 | 2102 | ### `subprocess.spawnargs` | |
| 2103 | 2103 | ||
| 2104 | - * {Array} | ||
| 2104 | + * Type: {Array} | ||
| 2105 | 2105 | ||
| 2106 | 2106 | The `subprocess.spawnargs` property represents the full list of command-line | |
| 2107 | 2107 | arguments the child process was launched with. | |
| 2108 | 2108 | ||
| 2109 | 2109 | ### `subprocess.spawnfile` | |
| 2110 | 2110 | ||
| 2111 | - * {string} | ||
| 2111 | + * Type: {string} | ||
| 2112 | 2112 | ||
| 2113 | 2113 | The `subprocess.spawnfile` property indicates the executable file name of | |
| 2114 | 2114 | the child process that is launched. | |
@@ -2126,7 +2126,7 @@ in which the child process is launched. | |||
| 2126 | 2126 | added: v0.1.90 | |
| 2127 | 2127 | --> | |
| 2128 | 2128 | ||
| 2129 | - * {stream.Readable|null|undefined} | ||
| 2129 | + * Type: {stream.Readable|null|undefined} | ||
| 2130 | 2130 | ||
| 2131 | 2131 | A `Readable Stream` that represents the child process's `stderr`. | |
| 2132 | 2132 | ||
@@ -2145,7 +2145,7 @@ if the child process could not be successfully spawned. | |||
| 2145 | 2145 | added: v0.1.90 | |
| 2146 | 2146 | --> | |
| 2147 | 2147 | ||
| 2148 | - * {stream.Writable|null|undefined} | ||
| 2148 | + * Type: {stream.Writable|null|undefined} | ||
| 2149 | 2149 | ||
| 2150 | 2150 | A `Writable Stream` that represents the child process's `stdin`. | |
| 2151 | 2151 | ||
@@ -2167,7 +2167,7 @@ if the child process could not be successfully spawned. | |||
| 2167 | 2167 | added: v0.7.10 | |
| 2168 | 2168 | --> | |
| 2169 | 2169 | ||
| 2170 | - * {Array} | ||
| 2170 | + * Type: {Array} | ||
| 2171 | 2171 | ||
| 2172 | 2172 | A sparse array of pipes to the child process, corresponding with positions in | |
| 2173 | 2173 | the [`stdio`][] option passed to [`child_process.spawn()`][] that have been set | |
@@ -2234,7 +2234,7 @@ not be successfully spawned. | |||
| 2234 | 2234 | added: v0.1.90 | |
| 2235 | 2235 | --> | |
| 2236 | 2236 | ||
| 2237 | - * {stream.Readable|null|undefined} | ||
| 2237 | + * Type: {stream.Readable|null|undefined} | ||
| 2238 | 2238 | ||
| 2239 | 2239 | A `Readable Stream` that represents the child process's `stdout`. | |
| 2240 | 2240 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -450,7 +450,7 @@ if (cluster.isPrimary) { | |||
| 450 | 450 | added: v6.0.0 | |
| 451 | 451 | --> | |
| 452 | 452 | ||
| 453 | - * {boolean} | ||
| 453 | + * Type: {boolean} | ||
| 454 | 454 | ||
| 455 | 455 | This property is `true` if the worker exited due to `.disconnect()`. | |
| 456 | 456 | If the worker exited any other way, it is `false`. If the | |
@@ -477,7 +477,7 @@ worker.kill(); | |||
| 477 | 477 | added: v0.8.0 | |
| 478 | 478 | --> | |
| 479 | 479 | ||
| 480 | - * {integer} | ||
| 480 | + * Type: {integer} | ||
| 481 | 481 | ||
| 482 | 482 | Each new worker is given its own unique id, this id is stored in the | |
| 483 | 483 | `id`. | |
@@ -595,7 +595,7 @@ it is [`kill()`][]. | |||
| 595 | 595 | added: v0.7.0 | |
| 596 | 596 | --> | |
| 597 | 597 | ||
| 598 | - * {ChildProcess} | ||
| 598 | + * Type: {ChildProcess} | ||
| 599 | 599 | ||
| 600 | 600 | All workers are created using [`child_process.fork()`][], the returned object | |
| 601 | 601 | from this function is stored as `.process`. In a worker, the global `process` | |
@@ -860,7 +860,7 @@ Deprecated alias for [`cluster.isPrimary`][]. | |||
| 860 | 860 | added: v16.0.0 | |
| 861 | 861 | --> | |
| 862 | 862 | ||
| 863 | - * {boolean} | ||
| 863 | + * Type: {boolean} | ||
| 864 | 864 | ||
| 865 | 865 | True if the process is a primary. This is determined | |
| 866 | 866 | by the `process.env.NODE_UNIQUE_ID`. If `process.env.NODE_UNIQUE_ID` is | |
@@ -872,7 +872,7 @@ undefined, then `isPrimary` is `true`. | |||
| 872 | 872 | added: v0.6.0 | |
| 873 | 873 | --> | |
| 874 | 874 | ||
| 875 | - * {boolean} | ||
| 875 | + * Type: {boolean} | ||
| 876 | 876 | ||
| 877 | 877 | True if the process is not a primary (it is the negation of `cluster.isPrimary`). | |
| 878 | 878 | ||
@@ -919,7 +919,7 @@ changes: | |||
| 919 | 919 | description: The `stdio` option is supported now. | |
| 920 | 920 | --> | |
| 921 | 921 | ||
| 922 | - * {Object} | ||
| 922 | + * Type: {Object} | ||
| 923 | 923 | * `execArgv` {string\[]} List of string arguments passed to the Node.js | |
| 924 | 924 | executable. **Default:** `process.execArgv`. | |
| 925 | 925 | * `exec` {string} File path to worker file. **Default:** `process.argv[1]`. | |
@@ -1026,7 +1026,7 @@ This can only be called from the primary process. | |||
| 1026 | 1026 | added: v0.7.0 | |
| 1027 | 1027 | --> | |
| 1028 | 1028 | ||
| 1029 | - * {Object} | ||
| 1029 | + * Type: {Object} | ||
| 1030 | 1030 | ||
| 1031 | 1031 | A reference to the current worker object. Not available in the primary process. | |
| 1032 | 1032 | ||
@@ -1060,7 +1060,7 @@ if (cluster.isPrimary) { | |||
| 1060 | 1060 | added: v0.7.0 | |
| 1061 | 1061 | --> | |
| 1062 | 1062 | ||
| 1063 | - * {Object} | ||
| 1063 | + * Type: {Object} | ||
| 1064 | 1064 | ||
| 1065 | 1065 | A hash that stores the active worker objects, keyed by `id` field. This makes it | |
| 1066 | 1066 | easy to loop through all the workers. It is only available in the primary | |
| Back | FazBrowse Home | New Git URL |
0 commit comments