Skip to content

Commit aebe532

Browse files
panvadanielleadams
authored andcommitted
doc: consistent webcrypto node.keyObject format
PR-URL: #37200 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 596bfb3 commit aebe532

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/api/webcrypto.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -608,10 +608,10 @@ added: v15.0.0
608608
-->
609609

610610
* `format`: {string} Must be one of `'raw'`, `'pkcs8'`, `'spki'`, `'jwk'`, or
611-
`node.keyObject`.
611+
`'node.keyObject'`.
612612
* `key`: {CryptoKey}
613613
* Returns: {Promise} containing {ArrayBuffer}, or, if `format` is
614-
`node.keyObject`, a {KeyObject}.
614+
`'node.keyObject'`, a {KeyObject}.
615615

616616
Exports the given key into the specified format, if supported.
617617

@@ -695,7 +695,7 @@ added: v15.0.0
695695
-->
696696

697697
* `format`: {string} Must be one of `'raw'`, `'pkcs8'`, `'spki'`, `'jwk'`, or
698-
`node.keyObject`.
698+
`'node.keyObject'`.
699699
* `keyData`: {ArrayBuffer|TypedArray|DataView|Buffer|KeyObject}
700700
<!--lint disable maximum-line-length remark-lint-->
701701
* `algorithm`: {RsaHashedImportParams|EcKeyImportParams|HmacImportParams|AesImportParams|Pbkdf2ImportParams|NodeDsaImportParams|NodeDhImportParams|NodeScryptImportParams|NodeEdKeyImportParams}
@@ -1465,7 +1465,7 @@ added: v15.0.0
14651465

14661466
The Node.js Web Crypto API extends various aspects of the Web Crypto API.
14671467
These extensions are consistently identified by prepending names with the
1468-
`node.` prefix. For instance, the `node.keyObject` key format can be
1468+
`node.` prefix. For instance, the `'node.keyObject'` key format can be
14691469
used with the `subtle.exportKey()` and `subtle.importKey()` methods to
14701470
convert between a WebCrypto {CryptoKey} object and a Node.js {KeyObject}.
14711471

0 commit comments

Comments
 (0)