diff options
Diffstat (limited to 'doc/api/process.md')
-rw-r--r-- | doc/api/process.md | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/doc/api/process.md b/doc/api/process.md index 7d5b96f134..4f274fe1bd 100644 --- a/doc/api/process.md +++ b/doc/api/process.md @@ -661,7 +661,7 @@ changes: * `module` {Object} * `filename` {string} -* `flags` {os.constants.dlopen} Defaults to `os.constants.dlopen.RTLD_LAZY`. +* `flags` {os.constants.dlopen} **Default:** `os.constants.dlopen.RTLD_LAZY` The `process.dlopen()` method allows to dynamically load shared objects. It is primarily used by `require()` to load @@ -700,11 +700,11 @@ added: v8.0.0 * `warning` {string|Error} The warning to emit. * `options` {Object} * `type` {string} When `warning` is a String, `type` is the name to use - for the *type* of warning being emitted. Default: `Warning`. + for the *type* of warning being emitted. **Default:** `Warning`. * `code` {string} A unique identifier for the warning instance being emitted. * `ctor` {Function} When `warning` is a String, `ctor` is an optional - function used to limit the generated stack trace. Default - `process.emitWarning` + function used to limit the generated stack trace. **Default:** + `process.emitWarning`. * `detail` {string} Additional text to include with the error. The `process.emitWarning()` method can be used to emit custom or application @@ -745,11 +745,11 @@ added: v6.0.0 * `warning` {string|Error} The warning to emit. * `type` {string} When `warning` is a String, `type` is the name to use - for the *type* of warning being emitted. Default: `Warning`. + for the *type* of warning being emitted. **Default:** `Warning`. * `code` {string} A unique identifier for the warning instance being emitted. * `ctor` {Function} When `warning` is a String, `ctor` is an optional - function used to limit the generated stack trace. Default - `process.emitWarning` + function used to limit the generated stack trace. **Default:** + `process.emitWarning`. The `process.emitWarning()` method can be used to emit custom or application specific process warnings. These can be listened for by adding a handler to the @@ -971,7 +971,7 @@ that started the Node.js process. added: v0.1.13 --> -* `code` {integer} The exit code. Defaults to `0`. +* `code` {integer} The exit code. **Default:** `0`. The `process.exit()` method instructs Node.js to terminate the process synchronously with an exit status of `code`. If `code` is omitted, exit uses @@ -1214,7 +1214,7 @@ added: v0.0.6 * `pid` {number} A process ID * `signal` {string|number} The signal to send, either as a string or number. - Defaults to `'SIGTERM'`. + **Default:** `'SIGTERM'`. The `process.kill()` method sends the `signal` to the process identified by `pid`. |