diff options
author | Vse Mozhet Byt <vsemozhetbyt@gmail.com> | 2018-04-02 04:44:32 +0300 |
---|---|---|
committer | Vse Mozhet Byt <vsemozhetbyt@gmail.com> | 2018-04-04 12:30:36 +0300 |
commit | 237cbe10fb82ba6ec69b14193a4a970e184306e7 (patch) | |
tree | 8fbbac215e1f9afcac524404e766c4157d8da145 /doc/api/process.md | |
parent | f7049a20068dc8a7e904b7cdd3d5b307b595dd3a (diff) | |
download | android-node-v8-237cbe10fb82ba6ec69b14193a4a970e184306e7.tar.gz android-node-v8-237cbe10fb82ba6ec69b14193a4a970e184306e7.tar.bz2 android-node-v8-237cbe10fb82ba6ec69b14193a4a970e184306e7.zip |
doc,tools: formalize, unify, codify default values
PR-URL: https://github.com/nodejs/node/pull/19737
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
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`. |