doc: add missing quotes in default string values
PR-URL: https://github.com/nodejs/node/pull/19894 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
parent
ef07d6570f
commit
321c178faa
@ -678,7 +678,7 @@ added: REPLACEME
|
||||
- `curve` {string}
|
||||
- `inputEncoding` {string}
|
||||
- `outputEncoding` {string}
|
||||
- `format` {string} **Default:** `uncompressed`
|
||||
- `format` {string} **Default:** `'uncompressed'`
|
||||
- Returns: {Buffer | string}
|
||||
|
||||
Converts the EC Diffie-Hellman public key specified by `key` and `curve` to the
|
||||
@ -757,7 +757,7 @@ its recommended for developers to handle this exception accordingly.
|
||||
added: v0.11.14
|
||||
-->
|
||||
- `encoding` {string}
|
||||
- `format` {string} **Default:** `uncompressed`
|
||||
- `format` {string} **Default:** `'uncompressed'`
|
||||
- Returns: {Buffer | string}
|
||||
|
||||
Generates private and public EC Diffie-Hellman key values, and returns
|
||||
@ -786,7 +786,7 @@ added: v0.11.14
|
||||
added: v0.11.14
|
||||
-->
|
||||
- `encoding` {string}
|
||||
- `format` {string} **Default:** `uncompressed`
|
||||
- `format` {string} **Default:** `'uncompressed'`
|
||||
- Returns: {Buffer | string} The EC Diffie-Hellman public key in the specified
|
||||
`encoding` and `format`.
|
||||
|
||||
|
@ -1823,9 +1823,9 @@ changes:
|
||||
-->
|
||||
|
||||
* `options` {Object | string | URL}
|
||||
* `protocol` {string} Protocol to use. **Default:** `http:`.
|
||||
* `protocol` {string} Protocol to use. **Default:** `'http:'`.
|
||||
* `host` {string} A domain name or IP address of the server to issue the
|
||||
request to. **Default:** `localhost`.
|
||||
request to. **Default:** `'localhost'`.
|
||||
* `hostname` {string} Alias for `host`. To support [`url.parse()`][],
|
||||
`hostname` is preferred over `host`.
|
||||
* `family` {number} IP address family to use when resolving `host` and
|
||||
|
@ -160,7 +160,7 @@ changes:
|
||||
-->
|
||||
- `options` {Object | string | URL} Accepts all `options` from
|
||||
[`http.request()`][], with some differences in default values:
|
||||
- `protocol` **Default:** `https:`
|
||||
- `protocol` **Default:** `'https:'`
|
||||
- `port` **Default:** `443`
|
||||
- `agent` **Default:** `https.globalAgent`
|
||||
- `callback` {Function}
|
||||
|
@ -700,7 +700,7 @@ 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:**
|
||||
@ -745,7 +745,7 @@ 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:**
|
||||
|
@ -430,7 +430,7 @@ changes:
|
||||
-->
|
||||
|
||||
* `options` {Object|string}
|
||||
* `prompt` {string} The input prompt to display. **Default:** `> `.
|
||||
* `prompt` {string} The input prompt to display. **Default:** `'> '`
|
||||
(with a trailing space).
|
||||
* `input` {stream.Readable} The Readable stream from which REPL input will be
|
||||
read. **Default:** `process.stdin`.
|
||||
@ -513,8 +513,8 @@ environment variables:
|
||||
- `NODE_REPL_HISTORY_SIZE` - Controls how many lines of history will be
|
||||
persisted if history is available. Must be a positive number.
|
||||
**Default:** `1000`.
|
||||
- `NODE_REPL_MODE` - May be either `sloppy` or `strict`. **Default:** `sloppy`,
|
||||
which will allow non-strict mode code to be run.
|
||||
- `NODE_REPL_MODE` - May be either `'sloppy'` or `'strict'`. **Default:**
|
||||
`'sloppy'`, which will allow non-strict mode code to be run.
|
||||
|
||||
### Persistent History
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user