content
large_stringlengths
3
20.5k
url
large_stringlengths
54
193
branch
large_stringclasses
4 values
source
large_stringclasses
42 values
embeddings
listlengths
384
384
score
float64
-0.21
0.65
DEP0052: `util.isNumber()` Type: End-of-Life The `util.isNumber()` API has been removed. Please use `typeof arg === 'number'` instead. An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/util-is)): ```bash npx codemod@latest @nodejs/util-is ``` ### DEP0053: `uti...
https://github.com/nodejs/node/blob/main//doc/api/deprecations.md
main
nodejs
[ -0.02295597270131111, 0.00891672819852829, 0.020378459244966507, -0.023758454248309135, 0.07741596549749374, -0.056059829890728, -0.03305574133992195, -0.011855363845825195, 0.01470728125423193, 0.028662865981459618, 0.013226726092398167, -0.08063717931509018, -0.06784562766551971, -0.0186...
0.147567
`OutgoingMessage.prototype.\_renderHeaders` property was never documented as an officially supported API. ### DEP0068: `node debug` Type: End-of-Life `node debug` corresponds to the legacy CLI debugger which has been replaced with a V8-inspector based CLI debugger available through `node inspect`. ### DEP0069: `vm.runI...
https://github.com/nodejs/node/blob/main//doc/api/deprecations.md
main
nodejs
[ -0.06092652305960655, 0.024572599679231644, 0.05355139076709747, 0.043625932186841965, 0.13503198325634003, -0.09178590774536133, -0.0408811941742897, 0.033819686621427536, -0.0032187094911932945, 0.0034571904689073563, -0.04878642410039902, -0.07337113469839096, -0.06453187763690948, -0.0...
0.079677
do not have any exports, and if not imported in a specific order would in fact throw errors. As such there are virtually no legitimate use cases for importing them through `require()`. On the other hand, `node-inspect` can be installed locally through a package manager, as it is published on the npm registry under the ...
https://github.com/nodejs/node/blob/main//doc/api/deprecations.md
main
nodejs
[ -0.10634265840053558, 0.055781979113817215, -0.04493578523397446, 0.12231989204883575, 0.0872107446193695, -0.0734860971570015, -0.11010725796222687, -0.009619672782719135, -0.0399579219520092, 0.04170013219118118, 0.005114035680890083, -0.005965713877230883, -0.017352379858493805, -0.0079...
0.074048
Skipping the verification could lead to hard-to-find errors and crashes. ### DEP0103: `process.binding('util').is[...]` typechecks Type: Documentation-only (supports [`--pending-deprecation`][]) Using `process.binding()` in general should be avoided. The type checking methods in particular can be replaced by using [`ut...
https://github.com/nodejs/node/blob/main//doc/api/deprecations.md
main
nodejs
[ -0.07189050316810608, 0.014709481969475746, 0.005389552563428879, -0.01680273935198784, 0.008976307697594166, -0.10350224375724792, 0.06442714482545853, 0.06240321695804596, -0.008037472143769264, 0.04733247309923172, -0.019080638885498047, -0.026614166796207428, 0.007982485927641392, 0.03...
0.017351
[legacy `urlObject`][]. Please use the [WHATWG URL API][] instead. An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/node-url-to-whatwg-url)). ```bash npx codemod@latest @nodejs/node-url-to-whatwg-url ``` ### DEP0117: Native crypto handles Type: End-of-Life Pr...
https://github.com/nodejs/node/blob/main//doc/api/deprecations.md
main
nodejs
[ -0.09912768751382828, 0.050426971167325974, 0.016704805195331573, -0.01853305660188198, 0.04876292869448662, -0.13237710297107697, -0.08053383976221085, -0.005585927050560713, 0.006238252855837345, 0.04796072840690613, -0.06932121515274048, -0.014915102161467075, -0.04044941067695618, 0.04...
0.030137
to use in userland. File streams should always be opened through their corresponding factory methods [`fs.createWriteStream()`][] and [`fs.createReadStream()`][]) or by passing a file descriptor in options. ### DEP0136: `http` `finished` Type: Documentation-only [`response.finished`][] indicates whether [`response.end(...
https://github.com/nodejs/node/blob/main//doc/api/deprecations.md
main
nodejs
[ -0.023128770291805267, 0.027402762323617935, -0.062386561185121536, 0.009213879704475403, 0.06047961860895157, -0.07892826944589615, -0.07042007148265839, 0.09317672997713089, 0.04252983629703522, 0.08136002719402313, -0.034359175711870193, 0.05459415167570114, -0.10615361481904984, 0.0106...
0.067936
`fs.promises.rm(path, { recursive: true, force: true })` instead. An automated migration is available ([source](https://github.com/nodejs/userland-migrations/tree/main/recipes/rmdir)): ```bash npx codemod@latest @nodejs/rmdir ``` ### DEP0148: Folder mappings in `"exports"` (trailing `"/"`) Type: End-of-Life Using a tra...
https://github.com/nodejs/node/blob/main//doc/api/deprecations.md
main
nodejs
[ -0.048926714807748795, -0.02109883911907673, 0.015277493745088577, -0.014906838536262512, 0.1393686830997467, -0.10801129788160324, -0.033813029527664185, 0.03153260052204132, 0.09071922302246094, 0.05555998533964157, 0.0017495661741122603, 0.001776798046194017, 0.005326921120285988, 0.040...
0.039619
for value type validation. ### DEP0160: `process.on('multipleResolves', handler)` Type: End-of-Life This event was deprecated and removed because it did not work with V8 promise combinators which diminished its usefulness. ### DEP0161: `process.\_getActiveRequests()` and `process.\_getActiveHandles()` Type: Documentati...
https://github.com/nodejs/node/blob/main//doc/api/deprecations.md
main
nodejs
[ -0.14167414605617523, -0.015744619071483612, -0.06566878408193588, 0.03821070119738579, 0.09883860498666763, -0.10055901110172272, 0.09312859177589417, 0.08786468207836151, 0.0028396237175911665, -0.01641731522977352, -0.08272385597229004, -0.0010830998653545976, -0.06983282417058945, 0.01...
0.107525
which can lead to unhandled promise rejections. ### DEP0175: `util.toUSVString` Type: Documentation-only The [`util.toUSVString()`][] API is deprecated. Please use [`String.prototype.toWellFormed`][] instead. ### DEP0176: `fs.F\_OK`, `fs.R\_OK`, `fs.W\_OK`, `fs.X\_OK` Type: End-of-Life `F\_OK`, `R\_OK`, `W\_OK` and `X\...
https://github.com/nodejs/node/blob/main//doc/api/deprecations.md
main
nodejs
[ -0.08793176710605621, 0.06398966163396835, 0.015726257115602493, 0.03621434420347214, 0.1293381005525589, -0.06994027644395828, -0.06543192267417908, 0.03687504306435585, 0.018112586811184883, 0.021805141121149063, -0.012301783077418804, -0.03457774966955185, -0.0003048461221624166, 0.0160...
0.044897
a `builtinModules` property that contains an array of built-in modules. This was incomplete and matched the already deprecated `repl.\_builtinLibs` ([DEP0142][]) instead it's better to rely upon `require('node:module').builtinModules`. An automated migration is available ([source](https://github.com/nodejs/userland-mig...
https://github.com/nodejs/node/blob/main//doc/api/deprecations.md
main
nodejs
[ -0.0913962796330452, 0.004770839121192694, -0.021260898560285568, -0.02026098407804966, 0.08503309637308121, -0.08769101649522781, -0.0364764928817749, -0.04653497785329819, -0.03397466614842415, 0.012293300591409206, 0.021787453442811966, -0.024172840639948845, -0.027288129553198814, 0.02...
0.006464
assert.md [`asyncResource.runInAsyncScope()`]: async\_context.md#asyncresourceruninasyncscopefn-thisarg-args [`buffer.subarray`]: buffer.md#bufsubarraystart-end [`child\_process.execFile`]: child\_process.md#child\_processexecfilefile-args-options-callback [`child\_process.exec`]: child\_process.md#child\_processexecco...
https://github.com/nodejs/node/blob/main//doc/api/deprecations.md
main
nodejs
[ -0.04803498834371567, -0.0014797498006373644, -0.1096782311797142, 0.02974492311477661, 0.041726190596818924, -0.05233503505587578, 0.013129385188221931, 0.02052323892712593, 0.002838010201230645, 0.022009890526533127, -0.0368758924305439, -0.027249567210674286, -0.042710352689027786, 0.06...
0.027897
# Debugger > Stability: 2 - Stable Node.js includes a command-line debugging utility. The Node.js debugger client is not a full-featured debugger, but simple stepping and inspection are possible. To use it, start Node.js with the `inspect` argument followed by the path to the script to debug. ```console $ node inspect ...
https://github.com/nodejs/node/blob/main//doc/api/debugger.md
main
nodejs
[ -0.042225468903779984, -0.04427562281489372, 0.041800741106271744, 0.07289500534534454, 0.0832347720861435, -0.06090063974261284, -0.09320195019245148, 0.04702940210700035, -0.01332549937069416, 0.037775687873363495, -0.09789139777421951, -0.005001053214073181, -0.06767288595438004, -0.061...
-0.006959
It is also possible to set a conditional breakpoint that only breaks when a given expression evaluates to `true`: ```console $ node inspect main.js < Debugger listening on ws://127.0.0.1:9229/ce24daa8-3816-44d4-b8ab-8273c8a66d35 < For help, see: https://nodejs.org/en/docs/inspector < connecting to 127.0.0.1:9229 ... ok...
https://github.com/nodejs/node/blob/main//doc/api/debugger.md
main
nodejs
[ -0.05701054260134697, 0.004028879106044769, 0.06489579379558563, 0.00915613304823637, 0.06149919331073761, -0.013415640220046043, -0.05490909889340401, -0.0038603111170232296, -0.003045241814106703, 0.045650456100702286, -0.059127602726221085, -0.04647897183895111, -0.0538974292576313, -0....
0.029554
of `js\_app.html` in the above URL. Chrome DevTools doesn't support debugging [worker threads][] yet. [ndb][] can be used to debug them. [Chrome DevTools Protocol]: https://chromedevtools.github.io/devtools-protocol/ [`debugger`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/debugger [nd...
https://github.com/nodejs/node/blob/main//doc/api/debugger.md
main
nodejs
[ -0.0836608037352562, -0.05229265242815018, 0.021143166348338127, 0.011340712197124958, 0.03380967304110527, -0.07837244123220444, -0.06490480154752731, -0.025133399292826653, -0.015961863100528717, -0.035854633897542953, -0.05407994985580444, -0.02878362312912941, -0.05700810253620148, -0....
0.079743
# Zlib > Stability: 2 - Stable The `node:zlib` module provides compression functionality implemented using Gzip, Deflate/Inflate, Brotli, and Zstd. To access it: ```mjs import zlib from 'node:zlib'; ``` ```cjs const zlib = require('node:zlib'); ``` Compression and decompression are built around the Node.js [Streams API...
https://github.com/nodejs/node/blob/main//doc/api/zlib.md
main
nodejs
[ -0.14173524081707, 0.0875251442193985, -0.05111975595355034, 0.045963410288095474, 0.06272871047258377, -0.09471157193183899, -0.04140746593475342, 0.07713542878627777, -0.031037872657179832, -0.01949729584157467, -0.07904627174139023, 0.054640140384435654, 0.04338906705379486, 0.003210982...
0.064209
++i) { zlib.deflate(payload, (err, buffer) => {}); } ``` ```cjs const zlib = require('node:zlib'); const payload = Buffer.from('This is some data'); // WARNING: DO NOT DO THIS! for (let i = 0; i < 30000; ++i) { zlib.deflate(payload, (err, buffer) => {}); } ``` In the preceding example, 30,000 deflate instances are crea...
https://github.com/nodejs/node/blob/main//doc/api/zlib.md
main
nodejs
[ -0.11390027403831482, 0.06694633513689041, -0.018965868279337883, 0.041996926069259644, 0.038023535162210464, -0.13846160471439362, 0.011119208298623562, 0.06890664249658585, -0.0219439584761858, -0.030735624954104424, -0.05379801616072655, 0.06689013540744781, -0.01511075533926487, 0.0252...
0.100657
terminate the response immediately // and log the error. response.end(); console.error('An error occurred:', err); } }; // Note: This is not a conformant accept-encoding parser. // See https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.3 if (/\bdeflate\b/.test(acceptEncoding)) { response.writeHead(200, { 'Co...
https://github.com/nodejs/node/blob/main//doc/api/zlib.md
main
nodejs
[ -0.09059597551822662, 0.08576299250125885, -0.04557866230607033, 0.018424976617097855, 0.027890583500266075, -0.11097956448793411, -0.05110948160290718, 0.008049807511270046, -0.03053341619670391, 0.0048749567940831184, -0.037008292973041534, -0.05908353999257088, 0.0018975877901539207, 0....
-0.009973
should be set to: ```js const options = { windowBits: 14, memLevel: 7 }; ``` This will, however, generally degrade compression. The memory requirements for inflate are (in bytes) `1 << windowBits`. That is, 32K for `windowBits` = 15 (default value) plus a few kilobytes for small objects. This is in addition to a single...
https://github.com/nodejs/node/blob/main//doc/api/zlib.md
main
nodejs
[ -0.036257922649383545, 0.06952600181102753, -0.007973970845341682, 0.04603961855173111, 0.07461230456829071, -0.09528478235006332, -0.05789359658956528, 0.09840650111436844, 0.04045799374580383, -0.044800251722335815, -0.09166895598173141, 0.04443783685564995, -0.03801426663994789, -0.0015...
0.057974
the 200 response code and // some amount of data has already been sent to the client. // The best we can do is terminate the response immediately // and log the error. clearInterval(i); response.end(); console.error('An error occurred:', err); } }); i = setInterval(() => { output.write(`The current time is ${Date()}\n`...
https://github.com/nodejs/node/blob/main//doc/api/zlib.md
main
nodejs
[ -0.0667504221200943, 0.13295488059520721, -0.04342111200094223, 0.06302822381258011, -0.02637317217886448, -0.0905081182718277, -0.045619115233421326, 0.0015371502377092838, 0.02961031347513199, -0.0036950784269720316, -0.047285329550504684, 0.04910914599895477, 0.04224109649658203, -0.058...
0.056491
controlling decompression: \* `BROTLI\_DECODER\_PARAM\_DISABLE\_RING\_BUFFER\_REALLOCATION` \* Boolean flag that affects internal memory allocation patterns. \* `BROTLI\_DECODER\_PARAM\_LARGE\_WINDOW` \* Boolean flag enabling “Large Window Brotli” mode (not compatible with the Brotli format as standardized in [RFC 7932...
https://github.com/nodejs/node/blob/main//doc/api/zlib.md
main
nodejs
[ -0.1127418652176857, 0.07894740253686905, -0.07798635214567184, 0.037213169038295746, 0.0028134621679782867, -0.07183048874139786, -0.04296918585896492, 0.006831062026321888, -0.06760720163583755, -0.05969777703285217, -0.058268770575523376, 0.02389322593808174, 0.027439039200544357, 0.006...
-0.032262
Extends: [`ZlibBase`][] Decompress a deflate stream. ## Class: `zlib.InflateRaw` \* Extends: [`ZlibBase`][] Decompress a raw deflate stream. ## Class: `zlib.Unzip` \* Extends: [`ZlibBase`][] Decompress either a Gzip- or Deflate-compressed stream by auto-detecting the header. ## Class: `zlib.ZlibBase` \* Extends: [`stre...
https://github.com/nodejs/node/blob/main//doc/api/zlib.md
main
nodejs
[ -0.14406737685203552, 0.08248263597488403, -0.00846092589199543, 0.04836967960000038, 0.0900065079331398, -0.10451444983482361, -0.03359100967645645, 0.061759524047374725, -0.07748275250196457, -0.07141325622797012, -0.04557184502482414, 0.04765759035944939, 0.04221091419458389, 0.00637505...
0.089898
UTF-8 encoding by default. Some third-party JavaScript libraries compute the checksum on a string based on `str.charCodeAt()` so that it can be run in browsers. If users want to match the checksum computed with this kind of library in the browser, it's better to use the same library in Node.js if it also runs in Node.j...
https://github.com/nodejs/node/blob/main//doc/api/zlib.md
main
nodejs
[ -0.008499511517584324, 0.03166014328598976, -0.07123100012540817, -0.015505846589803696, 0.026317710056900978, -0.08251702785491943, 0.048794329166412354, 0.010013852268457413, 0.02208026871085167, -0.03506274148821831, -0.032641563564538956, -0.009565007872879505, 0.05679032579064369, 0.0...
-0.015439
a chunk of data with [`BrotliDecompress`][]. ### `zlib.deflate(buffer[, options], callback)` \* `buffer` {Buffer|TypedArray|DataView|ArrayBuffer|string} \* `options` {zlib options} \* `callback` {Function} ### `zlib.deflateSync(buffer[, options])` \* `buffer` {Buffer|TypedArray|DataView|ArrayBuffer|string} \* `options`...
https://github.com/nodejs/node/blob/main//doc/api/zlib.md
main
nodejs
[ -0.10822615027427673, 0.016446445137262344, -0.07267545908689499, 0.010303997434675694, -0.04398566856980324, -0.10005088150501251, 0.07346053421497345, 0.009555568918585777, -0.05355818197131157, -0.08569927513599396, -0.05926213786005974, -0.0024899409618228674, -0.00221252697519958, -0....
0.022734
# Cluster > Stability: 2 - Stable Clusters of Node.js processes can be used to run multiple instances of Node.js that can distribute workloads among their application threads. When process isolation is not needed, use the [`worker\_threads`][] module instead, which allows running multiple application threads within a s...
https://github.com/nodejs/node/blob/main//doc/api/cluster.md
main
nodejs
[ -0.06094501540064812, -0.043891023844480515, -0.032970279455184937, 0.015375296585261822, 0.029345309361815453, -0.06590024381875992, -0.0690661370754242, 0.02837207540869713, 0.007732630241662264, 0.026081427931785583, -0.034200746566057205, 0.028765570372343063, 0.00537990452721715, -0.0...
0.163157
each worker will receive the same "random" port each time they do `listen(0)`. In essence, the port is random the first time, but predictable thereafter. To listen on a unique port, generate a port number based on the cluster worker ID. Node.js does not provide routing logic. It is therefore important to design an appl...
https://github.com/nodejs/node/blob/main//doc/api/cluster.md
main
nodejs
[ -0.05252166837453842, -0.025290582329034805, -0.00156079709995538, 0.055179402232170105, 0.021462079137563705, -0.03275054693222046, 0.012060151435434818, -0.08693061769008636, 0.0439339354634285, -0.015791624784469604, -0.04816141352057457, 0.1291104257106781, -0.006450131069868803, -0.03...
0.172861
+= 1; } } // Start workers and listen for messages containing notifyRequest const numCPUs = availableParallelism(); for (let i = 0; i < numCPUs; i++) { cluster.fork(); } for (const id in cluster.workers) { cluster.workers[id].on('message', messageHandler); } } else { // Worker processes have a http server. http.Server(...
https://github.com/nodejs/node/blob/main//doc/api/cluster.md
main
nodejs
[ -0.04230432212352753, 0.03609256446361542, -0.0023199112620204687, 0.03522886708378792, 0.02281721495091915, -0.09786573052406311, 0.017331786453723907, -0.01222976017743349, 0.05089793726801872, 0.01661420799791813, -0.04992934316396713, -0.054396405816078186, -0.02336006611585617, -0.018...
0.205255
{ if (worker.exitedAfterDisconnect === true) { console.log('Oh, it was just voluntary – no need to worry'); } }); // kill worker worker.kill(); ``` ### `worker.id` \* Type: {integer} Each new worker is given its own unique id, this id is stored in the `id`. While a worker is alive, this is the key that indexes it in `c...
https://github.com/nodejs/node/blob/main//doc/api/cluster.md
main
nodejs
[ -0.028742901980876923, 0.021141136065125465, -0.030262937769293785, 0.08546865731477737, 0.08534472435712814, -0.0663347840309143, 0.02249833382666111, -0.04452240467071533, 0.0313015915453434, 0.022994576022028923, -0.02548358589410782, 0.053337372839450836, -0.010619494132697582, -0.0101...
0.205577
is identical to [`ChildProcess.send()`][]. In a worker, this sends a message to the primary. It is identical to `process.send()`. This example will echo back all messages from the primary: ```js if (cluster.isPrimary) { const worker = cluster.fork(); worker.send('hi there'); } else if (cluster.isWorker) { process.on('m...
https://github.com/nodejs/node/blob/main//doc/api/cluster.md
main
nodejs
[ -0.0684414878487587, -0.009722144342958927, 0.0022351404186338186, 0.08413935452699661, 0.11204738169908524, -0.07820024341344833, 0.048209384083747864, 0.011602766811847687, 0.08434152603149414, 0.01268652081489563, -0.01685057207942009, 0.041510529816150665, -0.0706687867641449, -0.01506...
0.225162
\* `callback` {Function} Called when all workers are disconnected and handles are closed. Calls `.disconnect()` on each worker in `cluster.workers`. When they are disconnected all internal handles will be closed, allowing the primary process to die gracefully if no other event is waiting. The method takes an optional c...
https://github.com/nodejs/node/blob/main//doc/api/cluster.md
main
nodejs
[ -0.045197661966085434, -0.023718899115920067, -0.05521974712610245, 0.06823912262916565, 0.03414358198642731, -0.07076308876276016, 0.002979125827550888, 0.01882646605372429, 0.017950724810361862, 0.035067565739154816, -0.040204260498285294, 0.01782120391726494, -0.025545842945575714, -0.0...
0.19266
to [`.fork()`][]. The defaults above apply to the first call only; the defaults for later calls are the current values at the time of `cluster.setupPrimary()` is called. ```mjs import cluster from 'node:cluster'; cluster.setupPrimary({ exec: 'worker.js', args: ['--use', 'https'], silent: true, }); cluster.fork(); // ht...
https://github.com/nodejs/node/blob/main//doc/api/cluster.md
main
nodejs
[ -0.016406970098614693, 0.06687887012958527, -0.02255602926015854, 0.029962124302983284, -0.01006921473890543, -0.0784103274345398, -0.028720416128635406, 0.052343595772981644, -0.002651629503816366, -0.024650409817695618, 0.01885261945426464, -0.020262902602553368, -0.01866035722196102, -0...
0.080684
# V8 The `node:v8` module exposes APIs that are specific to the version of [V8][] built into the Node.js binary. It can be accessed using: ```mjs import v8 from 'node:v8'; ``` ```cjs const v8 = require('node:v8'); ``` ## `v8.cachedDataVersionTag()` \* Returns: {integer} Returns an integer representing a version tag der...
https://github.com/nodejs/node/blob/main//doc/api/v8.md
main
nodejs
[ -0.01427454873919487, 0.0024481150321662426, -0.009356596507132053, 0.02371092140674591, 0.09149491041898727, -0.03126636520028114, -0.04657551646232605, -0.0168913621455431, -0.034773558378219604, -0.055567417293787, -0.04972729831933975, -0.009350868873298168, -0.11099175363779068, -0.05...
0.060243
{number} \* `does\_zap\_garbage` {number} \* `number\_of\_native\_contexts` {number} \* `number\_of\_detached\_contexts` {number} \* `total\_global\_handles\_size` {number} \* `used\_global\_handles\_size` {number} \* `external\_memory` {number} \* `total\_allocated\_bytes` {number} `total\_heap\_size` The value of tot...
https://github.com/nodejs/node/blob/main//doc/api/v8.md
main
nodejs
[ -0.026216378435492516, 0.011359925381839275, -0.04742491990327835, 0.004414656665176153, -0.03175569698214531, -0.027966096997261047, 0.0929083377122879, 0.11493165045976639, 0.021582994610071182, -0.03239307552576065, -0.011326245032250881, -0.049907054752111435, 0.08154699951410294, -0.0...
0.172115
committed\_size\_bytes: 131072, resident\_size\_bytes: 131072, used\_size\_bytes: 152, space\_statistics: [ { name: 'NormalPageSpace0', committed\_size\_bytes: 0, resident\_size\_bytes: 0, used\_size\_bytes: 0, page\_stats: [{}], free\_list\_stats: {}, }, { name: 'NormalPageSpace1', committed\_size\_bytes: 131072, resi...
https://github.com/nodejs/node/blob/main//doc/api/v8.md
main
nodejs
[ -0.02634606510400772, 0.015548608265817165, -0.06456861644983292, -0.013318773359060287, 0.042755138128995895, -0.05566954240202904, 0.06636132299900055, 0.0003107838274445385, -0.011643852107226849, 0.07326237857341766, 0.08140271157026291, -0.056151002645492554, 0.086843341588974, -0.010...
0.101726
shows up in the prototype chain of the child // classes's prototype, so the child classes's prototype would also be // included in the result. console.log(queryObjects(A)); // 3 // [ "B { foo: 'bar', bar: 'qux' }", 'A {}', "A { foo: 'bar' }" ] console.log(queryObjects(A, { format: 'summary' })); ``` ## `v8.setFlagsFrom...
https://github.com/nodejs/node/blob/main//doc/api/v8.md
main
nodejs
[ -0.07225476205348969, 0.07013271749019623, -0.009787851944565773, 0.07509446889162064, -0.05550144985318184, 0.025694718584418297, 0.010334349237382412, 0.050855617970228195, -0.020549563691020012, -0.0155415628105402, -0.04197714105248451, -0.008322087116539478, -0.04643123969435692, -0.0...
0.039473
it to a JSON file. This file is intended to be used with tools such as Chrome DevTools. The JSON schema is undocumented and specific to the V8 engine, and may change from one version of V8 to the next. A heap snapshot is specific to a single V8 isolate. When using [worker threads][], a heap snapshot generated from the ...
https://github.com/nodejs/node/blob/main//doc/api/v8.md
main
nodejs
[ -0.1261870563030243, 0.059102777391672134, -0.04365032538771629, 0.0045703863725066185, 0.07337099313735962, -0.0868503674864769, -0.0626053661108017, 0.025648655369877815, 0.07009821385145187, -0.07074064761400223, -0.01607007533311844, 0.04417472332715988, -0.0409386083483696, -0.1018635...
0.229463
transferred out of band. Pass the corresponding `ArrayBuffer` in the deserializing context to [`deserializer.transferArrayBuffer()`][]. #### `serializer.writeUint32(value)` \* `value` {integer} Write a raw 32-bit unsigned integer. For use inside of a custom [`serializer.\_writeHostObject()`][]. #### `serializer.writeUi...
https://github.com/nodejs/node/blob/main//doc/api/v8.md
main
nodejs
[ 0.029637785628437996, 0.04120248183608055, -0.045957982540130615, -0.03425360098481178, -0.09226095676422119, -0.05126328021287918, 0.04836951196193695, 0.04558132216334343, -0.05824708566069603, -0.050937723368406296, -0.09385697543621063, -0.021390793845057487, -0.04197295382618904, -0.0...
0.07916
This method is called to read some kind of host object, i.e. an object that is created by native C++ bindings. If it is not possible to deserialize the data, a suitable exception should be thrown. This method is not present on the `Deserializer` class itself but can be provided by subclasses. ### Class: `v8.DefaultSeri...
https://github.com/nodejs/node/blob/main//doc/api/v8.md
main
nodejs
[ -0.046502526849508286, 0.04957348480820656, -0.03674545884132385, 0.017833609133958817, -0.06400738656520844, -0.04698161035776138, -0.0009581661433912814, 0.004276595544070005, -0.026247648522257805, -0.07884876430034637, -0.06324377655982971, -0.0024494058452546597, -0.08554283529520035, ...
0.151553
or rejected', { promise }); } // The `before` event runs immediately before a `then()` or `catch()` handler // runs or an `await` resumes execution. function before(promise) { console.log('a promise is about to call a then handler', { promise }); } // The `after` event runs immediately after a `then()` handler runs or ...
https://github.com/nodejs/node/blob/main//doc/api/v8.md
main
nodejs
[ -0.07655179500579834, -0.0010457164607942104, 0.04754403978586197, 0.04741312190890312, 0.08091236650943756, 0.02681189589202404, -0.02976888231933117, 0.007287909742444754, 0.09424900263547897, -0.007415000349283218, -0.00307029252871871, 0.03446560725569725, -0.05421833321452141, -0.0087...
0.065934
then only the `init` callback needs to be passed. The specifics of all functions that can be passed to `callbacks` is in the [Hook Callbacks][] section. ```mjs import { promiseHooks } from 'node:v8'; const stopAll = promiseHooks.createHook({ init(promise, parent) {}, }); ``` ```cjs const { promiseHooks } = require('nod...
https://github.com/nodejs/node/blob/main//doc/api/v8.md
main
nodejs
[ -0.1672494262456894, 0.06682723760604858, -0.012066060677170753, 0.07115746289491653, 0.05394500866532326, -0.03976816311478615, -0.07268034666776657, 0.05311406031250954, 0.058683089911937714, -0.045384809374809265, -0.0638669952750206, 0.02157789096236229, -0.028643207624554634, -0.06989...
0.10599
new Map(); // Reading a series of files from directory and store them into storage. constructor(directory, books) { for (const book of books) { this.storage.set(book, fs.readFileSync(path.join(directory, book))); } } static compressAll(shelf) { for (const [ book, content ] of shelf.storage) { shelf.storage.set(book, zl...
https://github.com/nodejs/node/blob/main//doc/api/v8.md
main
nodejs
[ -0.10670431703329086, 0.06575417518615723, -0.09203892946243286, 0.061658017337322235, 0.005144668743014336, -0.06368394941091537, -0.04573593661189079, 0.08545058965682983, -0.03574995696544647, 0.022457242012023926, 0.020533403381705284, 0.06283577531576157, 0.08625338971614838, 0.000962...
-0.016401
`profiler.stop()` Stop collecting GC data and return an object. The content of object is as follows. ```json { "version": 1, "startTime": 1674059033862, "statistics": [ { "gcType": "Scavenge", "beforeGC": { "heapStatistics": { "totalHeapSize": 5005312, "totalHeapSizeExecutable": 524288, "totalPhysicalSize": 5226496, "t...
https://github.com/nodejs/node/blob/main//doc/api/v8.md
main
nodejs
[ -0.028004853054881096, 0.0407753512263298, -0.07409477233886719, 0.0343547984957695, -0.01125272549688816, -0.0807352289557457, 0.017644934356212616, 0.06400709599256516, -0.0445697121322155, 0.003650505095720291, -0.021506771445274353, -0.06145292893052101, -0.043760109692811966, 0.001944...
0.01048
[`ERR\_BUFFER\_TOO\_LARGE`]: errors.md#err\_buffer\_too\_large [`Error`]: errors.md#class-error [`GetHeapCodeAndMetadataStatistics`]: https://v8docs.nodesource.com/node-13.2/d5/dda/classv8\_1\_1\_isolate.html#a6079122af17612ef54ef3348ce170866 [`GetHeapSpaceStatistics`]: https://v8docs.nodesource.com/node-13.2/d5/dda/cl...
https://github.com/nodejs/node/blob/main//doc/api/v8.md
main
nodejs
[ -0.07822724431753159, 0.034732237458229065, -0.07327505946159363, -0.036289043724536896, 0.06746739894151688, -0.1101527065038681, -0.03077465109527111, 0.023694608360528946, -0.06775940954685211, -0.026108518242836, 0.07462766021490097, -0.03925761952996254, -0.05424071475863457, -0.08350...
0.106799
# Command-line API Node.js comes with a variety of CLI options. These options expose built-in debugging, multiple ways to execute scripts, and other helpful runtime options. To view this documentation as a manual page in a terminal, run `man node`. ## Synopsis `node [options] [V8 options] [ | -e "script" | -] [--] [arg...
https://github.com/nodejs/node/blob/main//doc/api/cli.md
main
nodejs
[ -0.09739749133586884, 0.009656929410994053, 0.015872124582529068, 0.03692946955561638, 0.0986974760890007, -0.07805822044610977, -0.04566112533211708, 0.0632219985127449, 0.017580118030309677, -0.016064481809735298, -0.060120921581983566, 0.013840461149811745, -0.008513516746461391, -0.055...
0.098987
Active development When using the [Permission Model][], the process will not be able to spawn any child process by default. Attempts to do so will throw an `ERR\_ACCESS\_DENIED` unless the user explicitly passes the `--allow-child-process` flag when starting Node.js. Example: ```js const childProcess = require('node:ch...
https://github.com/nodejs/node/blob/main//doc/api/cli.md
main
nodejs
[ -0.05153023079037666, 0.03635808452963829, -0.06324741989374161, 0.043434321880340576, 0.08686351031064987, -0.05859539285302162, -0.026600485667586327, 0.09412673860788345, -0.001301117823459208, 0.0916210412979126, -0.026966748759150505, 0.044367466121912, -0.0335785336792469, 0.05306419...
0.076808
the flag `--allow-wasi` in the main Node.js process. Example: ```js const { WASI } = require('node:wasi'); // Attempt to bypass the permission new WASI({ version: 'preview1', // Attempt to mount the whole filesystem preopens: { '/': '/', }, }); ``` ```console $ node --permission --allow-fs-read=\* index.js Error: Acces...
https://github.com/nodejs/node/blob/main//doc/api/cli.md
main
nodejs
[ -0.0773150622844696, 0.06681662052869797, -0.0561392679810524, 0.025755861774086952, 0.10642768442630768, -0.06949856877326965, -0.04891955852508545, 0.014704798348248005, -0.035335950553417206, 0.03244296833872795, -0.003857828676700592, 0.07330888509750366, -0.042312946170568466, 0.01793...
0.161485
please file a request in the [Node.js issue tracker][] and link to it in the [tracking issue for user-land snapshots][]. ### `--build-snapshot-config` Specifies the path to a JSON configuration file which configures snapshot creation behavior. The following options are currently supported: \* `builder` {string} Require...
https://github.com/nodejs/node/blob/main//doc/api/cli.md
main
nodejs
[ -0.04304787144064903, 0.03300947695970535, -0.01300489529967308, 0.012096880935132504, 0.07538261264562607, -0.08149848133325577, -0.0405847430229187, -0.017454788088798523, -0.017984604462981224, 0.04774501919746399, -0.001330367405898869, 0.010790613479912281, -0.013161703944206238, -0.0...
-0.008199
with `node --disable-warning=ExperimentalWarning`: ```mjs import sys from 'node:sys'; import vm from 'node:vm'; vm.measureMemory(); ``` ```cjs const sys = require('node:sys'); const vm = require('node:vm'); vm.measureMemory(); ``` ### `--disable-wasm-trap-handler` By default, Node.js enables trap-handler-based WebAssem...
https://github.com/nodejs/node/blob/main//doc/api/cli.md
main
nodejs
[ -0.005351564381271601, 0.07273954153060913, 0.0008328428957611322, 0.07132675498723984, 0.09486866742372513, -0.05517199635505676, -0.031183971092104912, 0.017011437565088272, -0.04406961053609848, 0.0267030019313097, -0.042936619371175766, 0.010782729834318161, -0.03736443445086479, -0.05...
0.097525
file, the value from the environment takes precedence. You can pass multiple `--env-file` arguments. Subsequent files override pre-existing variables defined in previous files. An error is thrown if the file does not exist. ```bash node --env-file=.env --env-file=.development.env index.js ``` The format of the file sho...
https://github.com/nodejs/node/blob/main//doc/api/cli.md
main
nodejs
[ -0.0232466422021389, 0.0035346283111721277, -0.0036785064730793238, -0.01784619316458702, 0.04783504456281662, -0.039960697293281555, 0.0006632617441937327, 0.06020278111100197, 0.017613278701901436, 0.054095011204481125, -0.032820988446474075, 0.02152932435274124, 0.036118216812610626, -0...
-0.014789
--watch-path=src --watch-preserve-output --test-isolation=process ``` The priority in configuration is as follows: 1. NODE\\_OPTIONS and command-line options 2. Configuration file 3. Dotenv NODE\\_OPTIONS Values in the configuration file will not override the values in the environment variables and command-line options...
https://github.com/nodejs/node/blob/main//doc/api/cli.md
main
nodejs
[ -0.07445719838142395, -0.03870951756834984, -0.005042227450758219, 0.02358456701040268, 0.10229051858186722, -0.06502923369407654, 0.0005859466618858278, 0.0013273084769025445, -0.040441159158945084, 0.034323178231716156, 0.014225440099835396, 0.04788611829280853, 0.019692135974764824, -0....
-0.004658
crypto on startup. (Cannot be disabled from script code.) (Same requirements as `--enable-fips`.) ### `--force-node-api-uncaught-exceptions-policy` Enforces `uncaughtException` event on Node-API asynchronous callbacks. To prevent from an existing add-on from crashing the process, this flag is not enabled by default. In...
https://github.com/nodejs/node/blob/main//doc/api/cli.md
main
nodejs
[ -0.08263234049081802, 0.0151361133903265, -0.06875486671924591, 0.06854761391878128, 0.06450310349464417, -0.04304318502545357, -0.016192246228456497, 0.03587329387664795, -0.04666890203952789, -0.025332942605018616, -0.05005316808819771, 0.03905145823955536, 0.0020819338969886303, 0.04517...
0.088895
to write a heap dump when the specified signal is received. `signal` must be a valid signal name. Disabled by default. ```console $ node --heapsnapshot-signal=SIGUSR2 index.js & $ ps aux USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND node 1 5.5 6.1 787252 247004 ? Ssl 16:43 0:02 node --heapsnapshot-signal=SIGUS...
https://github.com/nodejs/node/blob/main//doc/api/cli.md
main
nodejs
[ -0.006514724809676409, 0.04524349048733711, -0.04972080513834953, 0.028815489262342453, 0.034124817699193954, -0.07328484207391739, -0.037773650139570236, 0.083222396671772, 0.005510972812771797, 0.012031431309878826, -0.026931868866086006, -0.037373658269643784, -0.013689126819372177, -0....
0.148727
[debugging security implications][] section for more information. ### `--inspect-brk[=[host:]port]` Activate inspector on `host:port` and break at start of user script. Default `host:port` is `127.0.0.1:9229`. If port `0` is specified, a random available port will be used. See [V8 Inspector integration for Node.js][] f...
https://github.com/nodejs/node/blob/main//doc/api/cli.md
main
nodejs
[ -0.02762986719608307, 0.0556359738111496, -0.028045712038874626, 0.02681136503815651, 0.06061095744371414, -0.1002504751086235, -0.028148716315627098, 0.009627006016671658, -0.0006354228826239705, -0.011176960542798042, 0.002623428590595722, 0.0019349493086338043, -0.029525669291615486, -0...
0.109834
context flow may differ. However, if a difference in flow is found please report it. ### `--no-deprecation` Silence deprecation warnings. ### `--no-experimental-detect-module` Disable using [syntax detection][] to determine module type. ### `--no-experimental-global-navigator` > Stability: 1 - Experimental Disable expo...
https://github.com/nodejs/node/blob/main//doc/api/cli.md
main
nodejs
[ -0.06886866688728333, -0.021275635808706284, -0.031676169484853745, 0.0310799740254879, 0.08580896258354187, -0.09220320731401443, -0.013526036404073238, -0.033072274178266525, -0.056200865656137466, -0.04899083450436592, 0.015402408316731453, -0.061025965958833694, -0.00020789624250028282, ...
0.08286
symbolically linked peer dependencies, as illustrated in the example below, the default behavior causes an exception to be thrown if `moduleA` attempts to require `moduleB` as a peer dependency: ```text {appDir} ├── app │ ├── index.js │ └── node\_modules │ ├── moduleA -> {appDir}/moduleA │ └── moduleB │ ├── index.js │ ...
https://github.com/nodejs/node/blob/main//doc/api/cli.md
main
nodejs
[ -0.06348460912704468, -0.06615040451288223, 0.03798411041498184, 0.014842653647065163, 0.11375734955072403, -0.016611212864518166, -0.03783433884382248, -0.010153009556233883, -0.0035379233304411173, 0.00953387375921011, 0.10230279713869095, 0.045232534408569336, 0.004923170432448387, 0.05...
-0.02738
`--report-signal=signal` Sets or resets the signal for report generation (not supported on Windows). Default signal is `SIGUSR2`. ### `--report-uncaught-exception` Enables report to be generated when the process exits due to an uncaught exception. Useful when inspecting the JavaScript stack in conjunction with native s...
https://github.com/nodejs/node/blob/main//doc/api/cli.md
main
nodejs
[ -0.07987790554761887, -0.04558609426021576, -0.07359546422958374, 0.06861962378025055, 0.03509029746055603, -0.0442989207804203, -0.059533439576625824, 0.06491228938102722, -0.04206512123346329, -0.05123322457075119, 0.03508845716714859, 0.026564106345176697, -0.033381782472133636, -0.0139...
0.219901
the generated blob is written to `snapshot.blob` in the current working directory. When used without `--build-snapshot`, `--snapshot-blob` specifies the path to the blob that is used to restore the application state. When loading a snapshot, Node.js checks that: 1. The version, architecture, and platform of the running...
https://github.com/nodejs/node/blob/main//doc/api/cli.md
main
nodejs
[ -0.03587837517261505, 0.0013476796448230743, 0.007083067204803228, 0.03046620450913906, 0.09743665158748627, -0.06210750713944435, -0.07929160445928574, -0.008295689709484577, -0.000205046875635162, -0.04346930980682373, -0.05112502723932266, 0.021990833804011345, -0.015509998425841331, -0...
0.060558
provided pattern. See the documentation on [filtering tests by name][] for more details. If both `--test-name-pattern` and `--test-skip-pattern` are supplied, tests must satisfy \*\*both\*\* requirements in order to be executed. ### `--test-only` Configures the test runner to only execute top level tests that have the ...
https://github.com/nodejs/node/blob/main//doc/api/cli.md
main
nodejs
[ -0.048033423721790314, -0.0075866226106882095, -0.036125849932432175, 0.0812135636806488, 0.06234278157353401, -0.030678903684020042, 0.058026786893606186, -0.04657023027539253, -0.032800063490867615, -0.03852611780166626, 0.061453353613615036, 0.02154536545276642, 0.02897695265710354, 0.0...
0.104966
\* Definitions in the form of `Object.defineProperty(process.env, 'KEY', {...})`. \* Queries in the form of `Object.hasOwn(process.env, 'KEY')`, `process.env.hasOwnProperty('KEY')` or `'KEY' in process.env`. \* Deletions in the form of `delete process.env.KEY`. \* Enumerations inf the form of `...process.env` or `Objec...
https://github.com/nodejs/node/blob/main//doc/api/cli.md
main
nodejs
[ -0.03361153602600098, -0.011108286678791046, -0.09307156503200531, 0.021818848326802254, 0.013404428027570248, -0.07833433151245117, 0.08395715057849884, 0.037469297647476196, -0.022093044593930244, -0.025049282237887383, -0.003870608052238822, -0.047328464686870575, 0.01190454326570034, -...
0.03498
environment variables. See `SSL\_CERT\_DIR` and `SSL\_CERT\_FILE`. ### `--use-env-proxy` > Stability: 1.1 - Active Development When enabled, Node.js parses the `HTTP\_PROXY`, `HTTPS\_PROXY` and `NO\_PROXY` environment variables during startup, and tunnels requests over the specified proxy. This is equivalent to setting...
https://github.com/nodejs/node/blob/main//doc/api/cli.md
main
nodejs
[ -0.01093796081840992, 0.037815485149621964, 0.05373664200305939, 0.034889791160821915, 0.022079115733504295, -0.04724730923771858, -0.08137696981430054, 0.030095938593149185, -0.021100513637065887, 0.03864559903740883, -0.04765349254012108, 0.10972821712493896, 0.016090644523501396, 0.0014...
-0.010788
set to `0` then Node.js will choose an appropriate size of the thread pool based on an estimate of the amount of parallelism. The amount of parallelism refers to the number of computations that can be carried out simultaneously in a given machine. In general, it's the same as the amount of CPUs, but it may diverge in e...
https://github.com/nodejs/node/blob/main//doc/api/cli.md
main
nodejs
[ -0.04046914353966713, -0.05505605414509773, -0.020821332931518555, 0.05134427547454834, 0.10201586782932281, -0.04048175364732742, -0.05100882798433304, -0.040996525436639786, 0.09005311876535416, 0.01188813429325819, -0.07071755081415176, 0.057252123951911926, -0.03208073973655701, -0.079...
0.081726
be extended with the extra certificates in `file`. The file should consist of one or more trusted certificates in PEM format. A message will be emitted (once) with [`process.emitWarning()`][emit\_warning] if the file is missing or malformed, but any errors are otherwise ignored. Neither the well known nor extra certifi...
https://github.com/nodejs/node/blob/main//doc/api/cli.md
main
nodejs
[ -0.0347762405872345, 0.05685168504714966, -0.0009600024786777794, 0.06840389966964722, 0.09686112403869629, -0.06376434117555618, -0.027231091633439064, 0.11553123593330383, 0.004288611002266407, -0.01355817262083292, 0.013190023601055145, -0.030703498050570488, 0.058927081525325775, 0.021...
0.063953
\* `--test-rerun-failures` \* `--test-shard` \* `--test-skip-pattern` \* `--throw-deprecation` \* `--title` \* `--tls-cipher-list` \* `--tls-keylog` \* `--tls-max-v1.2` \* `--tls-max-v1.3` \* `--tls-min-v1.0` \* `--tls-min-v1.1` \* `--tls-min-v1.2` \* `--tls-min-v1.3` \* `--trace-deprecation` \* `--trace-env-js-stack` ...
https://github.com/nodejs/node/blob/main//doc/api/cli.md
main
nodejs
[ -0.030475890263915062, 0.005415796302258968, -0.0446663573384285, -0.05070013925433159, 0.01127202995121479, -0.09770385175943375, -0.019629213958978653, -0.0650893822312355, 0.028212469071149826, -0.023755580186843872, 0.041666947305202484, -0.03709592670202255, 0.01287213247269392, -0.02...
0.024385
trusted CA certificates present in the system store along with the `--use-bundled-ca` option and the `NODE\_EXTRA\_CA\_CERTS` environment variable. This can also be enabled using the [`--use-system-ca`][] command-line flag. When both are set, `--use-system-ca` takes precedence. ### `NODE\_V8\_COVERAGE=dir` When set, No...
https://github.com/nodejs/node/blob/main//doc/api/cli.md
main
nodejs
[ -0.10669520497322083, 0.05516975373029709, -0.043926503509283066, 0.04334355518221855, 0.09046096354722977, -0.07642489671707153, 0.013065214268863201, 0.06062498316168785, -0.008325004950165749, -0.01285951491445303, -0.008465454913675785, 0.002026037545874715, 0.05327534303069115, 0.0092...
0.093261
based on synchronous system APIs. Node.js APIs that use the threadpool are: \* all `fs` APIs, other than the file watcher APIs and those that are explicitly synchronous \* asynchronous crypto APIs such as `crypto.pbkdf2()`, `crypto.scrypt()`, `crypto.randomBytes()`, `crypto.randomFill()`, `crypto.generateKeyPair()` \* ...
https://github.com/nodejs/node/blob/main//doc/api/cli.md
main
nodejs
[ -0.05711369216442108, -0.030586810782551765, -0.03234759345650673, 0.01634591445326805, 0.11317341774702072, -0.08592820167541504, -0.0651525929570198, -0.0370827317237854, 0.09767676144838333, -0.03492950275540352, -0.06749533116817474, 0.05371616408228874, 0.008724899031221867, -0.063045...
-0.073609
to collect in an error's stack trace. Setting it to 0 disables stack trace collection. The default value is 10. ```bash node --stack-trace-limit=12 -p -e "Error.stackTraceLimit" # prints 12 ``` [#42511]: https://github.com/nodejs/node/issues/42511 [Chrome DevTools Protocol]: https://chromedevtools.github.io/devtools-pr...
https://github.com/nodejs/node/blob/main//doc/api/cli.md
main
nodejs
[ -0.061953697353601456, -0.014622336253523827, -0.0010002140188589692, 0.011314456351101398, 0.07437188178300858, -0.04667187109589577, -0.07036430388689041, 0.034633442759513855, 0.011593002825975418, -0.06288126111030579, 0.014568667858839035, -0.07142815738916397, 0.016104158014059067, -...
-0.056511
# Crypto > Stability: 2 - Stable The `node:crypto` module provides cryptographic functionality that includes a set of wrappers for OpenSSL's hash, HMAC, cipher, decipher, sign, and verify functions. ```mjs const { createHmac } = await import('node:crypto'); const secret = 'abcdefg'; const hash = createHmac('sha256', se...
https://github.com/nodejs/node/blob/main//doc/api/crypto.md
main
nodejs
[ -0.045105841010808945, 0.04560168832540512, -0.011013273149728775, 0.019839169457554817, 0.04667208343744278, -0.030177831649780273, 0.004481151234358549, 0.024999480694532394, 0.0134150804951787, -0.01930825598537922, -0.007253631949424744, -0.007269340101629496, 0.01763385348021984, -0.0...
0.051164
string. \* Returns: {Buffer} The challenge component of the `spkac` data structure, which includes a public key and a challenge. ```mjs const { Certificate } = await import('node:crypto'); const spkac = getSpkacSomehow(); const challenge = Certificate.exportChallenge(spkac); console.log(challenge.toString('utf8')); // ...
https://github.com/nodejs/node/blob/main//doc/api/crypto.md
main
nodejs
[ -0.007587343920022249, 0.06839065253734589, -0.0715939924120903, 0.04394374042749405, -0.029765181243419647, 0.02333923988044262, 0.04233410954475403, 0.031306736171245575, 0.04462626576423645, -0.05037236213684082, -0.03881245478987694, -0.10336101800203323, -0.005096593406051397, 0.05276...
-0.005751
Certificate(); const spkac = getSpkacSomehow(); console.log(cert.verifySpkac(Buffer.from(spkac))); // Prints: true or false ``` ```cjs const { Buffer } = require('node:buffer'); const { Certificate } = require('node:crypto'); const cert = Certificate(); const spkac = getSpkacSomehow(); console.log(cert.verifySpkac(Buff...
https://github.com/nodejs/node/blob/main//doc/api/crypto.md
main
nodejs
[ -0.06794054806232452, 0.10507914423942566, -0.05483988672494888, 0.03562932088971138, 0.030929572880268097, -0.032878924161195755, 0.008182700723409653, 0.023927848786115646, 0.03721451759338379, -0.08982635289430618, -0.011170436628162861, -0.03564438223838806, -0.007207697257399559, 0.05...
0.032708
is 24 bytes (192 bits). scrypt(password, 'salt', 24, (err, key) => { if (err) throw err; // Then, we'll generate a random initialization vector randomFill(new Uint8Array(16), (err, iv) => { if (err) throw err; const cipher = createCipheriv(algorithm, key, iv); const input = createReadStream('test.js'); const output = c...
https://github.com/nodejs/node/blob/main//doc/api/crypto.md
main
nodejs
[ -0.06533931195735931, 0.03343429043889046, -0.04644768312573433, 0.01057180855423212, -0.03949761018157005, -0.05570809915661812, 0.02650598995387554, 0.022575460374355316, 0.029172413051128387, -0.04160997271537781, -0.0563325360417366, -0.010476337745785713, 0.08862262219190598, -0.00281...
0.050304
block size. To disable the default padding call `cipher.setAutoPadding(false)`. When `autoPadding` is `false`, the length of the entire input data must be a multiple of the cipher's block size or [`cipher.final()`][] will throw an error. Disabling automatic padding is useful for non-standard padding, for instance using...
https://github.com/nodejs/node/blob/main//doc/api/crypto.md
main
nodejs
[ -0.03558743745088577, 0.09481607377529144, -0.07609202712774277, 0.041143015027046204, -0.12737204134464264, -0.02768033742904663, 0.006087576039135456, 0.01951397955417633, -0.0015862234868109226, -0.04811432585120201, -0.05705655366182327, 0.013489198870956898, 0.030737295746803284, -0.0...
-0.059764
Using `Decipheriv` and piped streams: ```mjs import { createReadStream, createWriteStream, } from 'node:fs'; import { Buffer } from 'node:buffer'; const { scryptSync, createDecipheriv, } = await import('node:crypto'); const algorithm = 'aes-192-cbc'; const password = 'Password used to generate key'; // Use the async `c...
https://github.com/nodejs/node/blob/main//doc/api/crypto.md
main
nodejs
[ -0.015339481644332409, 0.03151896595954895, -0.06225341930985451, 0.006155358161777258, -0.046936046332120895, -0.05734813213348389, -0.03140530735254288, 0.08468722552061081, -0.006655425764620304, -0.03309580311179161, -0.06504616886377335, -0.05560685321688652, 0.05517987161874771, 0.01...
0.010139
{string|Buffer|ArrayBuffer|TypedArray|DataView} \* `encoding` {string} String encoding to use when `buffer` is a string. \* Returns: {Decipheriv} The same Decipher for method chaining. When using an authenticated encryption mode (`GCM`, `CCM`, `OCB`, and `chacha20-poly1305` are currently supported), the `decipher.setAu...
https://github.com/nodejs/node/blob/main//doc/api/crypto.md
main
nodejs
[ -0.030071089044213295, 0.04721904546022415, -0.057323429733514786, -0.02281981147825718, -0.09644872695207596, -0.07230991125106812, 0.06261099874973297, -0.008245707489550114, -0.025923414155840874, -0.05820401385426521, 0.005499797407537699, -0.01998094469308853, 0.07703744620084763, 0.0...
-0.041197
| string} Computes the shared secret using `otherPublicKey` as the other party's public key and returns the computed shared secret. The supplied key is interpreted using the specified `inputEncoding`, and secret is encoded using specified `outputEncoding`. If the `inputEncoding` is not provided, `otherPublicKey` is exp...
https://github.com/nodejs/node/blob/main//doc/api/crypto.md
main
nodejs
[ -0.04676452651619911, 0.009864358231425285, -0.02536650374531746, -0.029820913448929787, -0.07132168859243393, -0.051038458943367004, 0.0718829482793808, -0.06476699560880661, 0.019918300211429596, -0.047729477286338806, 0.037698157131671906, -0.021369153633713722, 0.02566414326429367, -0....
0.007865
\* `'modp14'` (2048 bits, [RFC 3526][] Section 3) \* `'modp15'` (3072 bits, [RFC 3526][] Section 4) \* `'modp16'` (4096 bits, [RFC 3526][] Section 5) \* `'modp17'` (6144 bits, [RFC 3526][] Section 6) \* `'modp18'` (8192 bits, [RFC 3526][] Section 7) The following groups are still supported but deprecated (see [Caveats]...
https://github.com/nodejs/node/blob/main//doc/api/crypto.md
main
nodejs
[ -0.08323830366134644, 0.03768079727888107, 0.06545790284872055, -0.03381650149822235, 0.08132858574390411, -0.050915829837322235, -0.048986054956912994, -0.03189641982316971, -0.03823881596326828, -0.007172496989369392, 0.0012319142697378993, 0.03602224960923195, -0.03666647523641586, 0.03...
0.089857
string will be returned; otherwise a [`Buffer`][] is returned. `ecdh.computeSecret` will throw an `ERR\_CRYPTO\_ECDH\_INVALID\_PUBLIC\_KEY` error when `otherPublicKey` lies outside of the elliptic curve. Since `otherPublicKey` is usually supplied from a remote user over an insecure network, be sure to handle this excep...
https://github.com/nodejs/node/blob/main//doc/api/crypto.md
main
nodejs
[ -0.004890092648565769, 0.06269903481006622, -0.07677289843559265, -0.01970561593770981, -0.045357879251241684, -0.05255180597305298, 0.004913360811769962, -0.005038426723331213, 0.05594657361507416, -0.08732935041189194, 0.086647629737854, -0.08439770340919495, 0.05983024463057518, -0.0929...
0.013592
such a predictable private key in a real // application. alice.setPrivateKey( createHash('sha256').update('alice', 'utf8').digest(), ); // Bob uses a newly generated cryptographically strong // pseudorandom key pair bob.generateKeys(); const aliceSecret = alice.computeSecret(bob.getPublicKey(), null, 'hex'); const bobS...
https://github.com/nodejs/node/blob/main//doc/api/crypto.md
main
nodejs
[ -0.054829273372888565, 0.029701337218284607, -0.08857705444097519, -0.018015366047620773, -0.04953012987971306, 0.03460370749235153, 0.030217735096812248, -0.011209140531718731, 0.02884804643690586, 0.029704764485359192, -0.039638422429561615, 0.01786734163761139, 0.08273676037788391, -0.0...
-0.01906
will cause an error to be thrown. ### `hash.update(data[, inputEncoding])` \* `data` {string|Buffer|TypedArray|DataView} \* `inputEncoding` {string} The [encoding][] of the `data` string. Updates the hash content with the given `data`, the encoding of which is given in `inputEncoding`. If `encoding` is not provided, an...
https://github.com/nodejs/node/blob/main//doc/api/crypto.md
main
nodejs
[ -0.022206304594874382, 0.013034257106482983, -0.007185811176896095, -0.051883891224861145, -0.08235129714012146, -0.06379544734954834, 0.06284788995981216, -0.05436001718044281, 0.013994917273521423, -0.04976179078221321, -0.02741328813135624, 0.07027637213468552, 0.05790899321436882, 0.01...
-0.002648
and each kind of key exposes different functions. The [`crypto.createSecretKey()`][], [`crypto.createPublicKey()`][] and [`crypto.createPrivateKey()`][] methods are used to create `KeyObject` instances. `KeyObject` objects are not to be created directly using the `new` keyword. Most applications should consider using t...
https://github.com/nodejs/node/blob/main//doc/api/crypto.md
main
nodejs
[ -0.053336553275585175, 0.0014972541248425841, -0.05225919187068939, 0.05411120504140854, -0.010966004803776741, -0.036883044987916946, 0.06977055221796036, 0.012575982138514519, 0.0356866680085659, -0.027689173817634583, -0.011817989870905876, -0.0059398021548986435, 0.04948573186993599, -...
0.092371
is a string, when DER it will be a buffer containing the data encoded as DER, when [JWK][] it will be an object. When [JWK][] encoding format was selected, all other encoding options are ignored. PKCS#1, SEC1, and PKCS#8 type keys can be encrypted by using a combination of the `cipher` and `format` options. The PKCS#8 ...
https://github.com/nodejs/node/blob/main//doc/api/crypto.md
main
nodejs
[ -0.046170443296432495, 0.03280679136514664, -0.07464156299829483, -0.006295972503721714, -0.020872341468930244, -0.023949231952428818, 0.02861313708126545, 0.0721406415104866, 0.07895146310329437, -0.009724101051688194, -0.05437164381146431, -0.05720023065805435, 0.0009579717880114913, -0....
0.039911
string} Calculates the signature on all the data passed through using either [`sign.update()`][] or [`sign.write()`][stream-writable-write]. If `privateKey` is not a [`KeyObject`][], this function behaves as if `privateKey` had been passed to [`crypto.createPrivateKey()`][]. If it is an object, the following additional...
https://github.com/nodejs/node/blob/main//doc/api/crypto.md
main
nodejs
[ -0.07935930788516998, 0.08151252567768097, -0.08738037198781967, 0.020280994474887848, -0.015545346774160862, -0.06518682837486267, 0.0004977489588782191, 0.09859813749790192, 0.04231856018304825, -0.05201256647706032, 0.019166164100170135, -0.0021719199139624834, -0.002337930491194129, -0...
0.064436
(default): DER-encoded ASN.1 signature structure encoding `(r, s)`. \* `'ieee-p1363'`: Signature format `r || s` as proposed in IEEE-P1363. \* `padding` {integer} Optional padding value for RSA, one of the following: \* `crypto.constants.RSA\_PKCS1\_PADDING` (default) \* `crypto.constants.RSA\_PKCS1\_PSS\_PADDING` `RSA...
https://github.com/nodejs/node/blob/main//doc/api/crypto.md
main
nodejs
[ -0.1110038086771965, -0.00916339922696352, -0.06454005837440491, -0.020155945792794228, 0.04965484142303467, -0.06655053794384003, 0.033108361065387726, 0.044960152357816696, 0.028390953317284584, -0.06080930307507515, 0.03767556697130203, 0.04794229567050934, 0.05454939976334572, 0.007998...
0.029054
is consistent with [RFC 2818][] ("HTTP Over TLS"). If the `'subject'` option is set to `'always'` and if the subject alternative name extension either does not exist or does not contain a matching DNS name, the certificate subject is considered. If the `'subject'` option is set to `'never'`, the certificate subject is ...
https://github.com/nodejs/node/blob/main//doc/api/crypto.md
main
nodejs
[ -0.061098888516426086, 0.059378016740083694, 0.02621152438223362, -0.03464575484395027, 0.03975691273808479, -0.07347028702497482, 0.04007311165332794, -0.06512156873941422, 0.06544147431850433, -0.07834067940711975, -0.00864475592970848, -0.09010397642850876, 0.0422552265226841, 0.0871365...
-0.033321
Type: {string} The serial number of this certificate. Serial numbers are assigned by certificate authorities and do not uniquely identify certificates. Consider using [`x509.fingerprint256`][] as a unique identifier instead. ### `x509.subject` \* Type: {string} The complete subject of this certificate. ### `x509.subjec...
https://github.com/nodejs/node/blob/main//doc/api/crypto.md
main
nodejs
[ -0.08813535422086716, 0.09766731411218643, 0.03666507080197334, -0.010093714110553265, 0.05023584142327309, -0.02378748543560505, 0.017947470769286156, 0.0246209017932415, 0.05832361429929733, -0.04965582862496376, -0.030377790331840515, 0.01009784173220396, 0.04306989163160324, 0.06561982...
0.051426
key. This is known as pepper in password hashing applications. If used, must have a length not greater than `2\*\*32-1` bytes. \* `associatedData` {string|ArrayBuffer|Buffer|TypedArray|DataView|undefined} OPTIONAL, Additional data to be added to the hash, functionally equivalent to salt or secret, but meant for non-ran...
https://github.com/nodejs/node/blob/main//doc/api/crypto.md
main
nodejs
[ -0.04384404420852661, -0.0033914956729859114, -0.1146145761013031, -0.0026888297870755196, -0.08043937385082245, -0.08720680326223373, 0.10345442593097687, 0.016335126012563705, 0.09299137443304062, -0.0802266001701355, 0.03567582741379738, 0.010077299550175667, 0.0928478091955185, -0.0629...
0.164722
16 bytes long. See [NIST SP 800-132][] for details. When passing strings for `message`, `nonce`, `secret` or `associatedData`, please consider [caveats when using strings as inputs to cryptographic APIs][]. An exception is thrown when key derivation fails, otherwise the derived key is returned as a [`Buffer`][]. An exc...
https://github.com/nodejs/node/blob/main//doc/api/crypto.md
main
nodejs
[ -0.041191961616277695, 0.06429271399974823, -0.1153685450553894, 0.0321529246866703, -0.03604783117771149, -0.11456838995218277, 0.06084678694605827, -0.008009303361177444, 0.03692671284079552, -0.03886103630065918, -0.022000249475240707, -0.028664331883192062, 0.05203934386372566, -0.0441...
0.140741
`algorithm` and `iv` is an [initialization vector][]. Both arguments must be `'utf8'` encoded strings, [Buffers][`Buffer`], `TypedArray`, or `DataView`s. The `key` may optionally be a [`KeyObject`][] of type `secret`. If the cipher does not need an initialization vector, `iv` may be `null`. When passing strings for `ke...
https://github.com/nodejs/node/blob/main//doc/api/crypto.md
main
nodejs
[ -0.04422266036272049, 0.055153604596853256, -0.0946456640958786, -0.00516415573656559, -0.12720680236816406, -0.04889630526304245, 0.03848864510655403, 0.03250495344400406, -0.04829861596226692, -0.09908678382635117, -0.0244718287140131, -0.027005918323993683, 0.08567458391189575, 0.035842...
0.067045
alias for [`crypto.getDiffieHellman()`][] ### `crypto.createECDH(curveName)` \* `curveName` {string} \* Returns: {ECDH} Creates an Elliptic Curve Diffie-Hellman (`ECDH`) key exchange object using a predefined curve specified by the `curveName` string. Use [`crypto.getCurves()`][] to obtain a list of available curve nam...
https://github.com/nodejs/node/blob/main//doc/api/crypto.md
main
nodejs
[ -0.0050738961435854435, 0.03862663358449936, -0.04013849049806595, -0.0017009193543344736, -0.0008806550758890808, -0.07916615158319473, -0.022035812959074974, 0.06530316919088364, 0.021979155018925667, -0.0949728935956955, -0.0011125258170068264, -0.055156730115413666, -0.019322233274579048...
0.044265
createReadStream(filename); input.on('readable', () => { // Only one element is going to be produced by the // hash stream. const data = input.read(); if (data) hmac.update(data); else { console.log(`${hmac.digest('hex')} ${filename}`); } }); ``` ### `crypto.createPrivateKey(key)` \* `key` {Object|string|ArrayBuffer|Bu...
https://github.com/nodejs/node/blob/main//doc/api/crypto.md
main
nodejs
[ 0.028467465192079544, 0.046591296792030334, -0.040069177746772766, -0.03687932714819908, -0.05507680028676987, -0.045520029962062836, 0.0691319927573204, 0.05691007152199745, 0.025727253407239914, 0.011844452470541, -0.0069123730063438416, 0.019194144755601883, 0.0637800469994545, -0.03814...
-0.031127
of the available signing algorithms. Optional `options` argument controls the `stream.Writable` behavior. In some cases, a `Verify` instance can be created using the name of a signature algorithm, such as `'RSA-SHA256'`, instead of a digest algorithm. This will use the corresponding digest algorithm. This does not work...
https://github.com/nodejs/node/blob/main//doc/api/crypto.md
main
nodejs
[ -0.03888976201415062, 0.013145742937922478, -0.054198067635297775, -0.07522782683372498, -0.05982128158211708, -0.12920154631137848, -0.007105483207851648, 0.00544235622510314, -0.006218448746949434, -0.03839610517024994, -0.015651414170861244, -0.017626658082008362, 0.02111128345131874, 0...
0.07204
key) => { if (err) throw err; console.log(key.export().toString('hex')); // 46e..........620 }); ``` ```cjs const { generateKey, } = require('node:crypto'); generateKey('hmac', { length: 512 }, (err, key) => { if (err) throw err; console.log(key.export().toString('hex')); // 46e..........620 }); ``` The size of a gener...
https://github.com/nodejs/node/blob/main//doc/api/crypto.md
main
nodejs
[ -0.026219461113214493, 0.08388334512710571, -0.05495574697852135, 0.004048516508191824, 0.015077621676027775, -0.04072723165154457, -0.013814878650009632, 0.06150465086102486, 0.02962813898921013, -0.001738664461299777, 0.002324386266991496, -0.0361044742166996, 0.012409103102982044, -0.05...
-0.057577
(EC). \*\*Default:\*\* `'named'`. \* `publicKeyEncoding` {Object} See [`keyObject.export()`][]. \* `privateKeyEncoding` {Object} See [`keyObject.export()`][]. \* Returns: {Object} \* `publicKey` {string | Buffer | KeyObject} \* `privateKey` {string | Buffer | KeyObject} Generates a new asymmetric key pair of the given ...
https://github.com/nodejs/node/blob/main//doc/api/crypto.md
main
nodejs
[ -0.054948315024375916, 0.04328981786966324, -0.05902915820479393, 0.058681800961494446, -0.035415999591350555, -0.018009303137660027, 0.03778607025742531, 0.030673310160636902, 0.0805598720908165, -0.0019294427474960685, 0.019295480102300644, -0.02682196907699108, -0.024484936147928238, -0...
0.05903
the condition that `prime % add = 3`. This is necessary because `prime % add = 1` for `options.add > 2` would contradict the condition enforced by `options.safe`. \* `options.rem` is ignored if `options.add` is not given. Both `options.add` and `options.rem` must be encoded as big-endian sequences if given as an `Array...
https://github.com/nodejs/node/blob/main//doc/api/crypto.md
main
nodejs
[ 0.015573818236589432, 0.03434467315673828, -0.09629476070404053, 0.009638809598982334, 0.01697213016450405, -0.08021677285432816, -0.050383925437927246, 0.06665334105491638, -0.005382169969379902, 0.0055033061653375626, -0.028109772130846977, 0.020912552252411842, -0.003243556944653392, -0...
0.037691
bytes. \* `mode` {string} The cipher mode. One of `'cbc'`, `'ccm'`, `'cfb'`, `'ctr'`, `'ecb'`, `'gcm'`, `'ocb'`, `'ofb'`, `'stream'`, `'wrap'`, `'xts'`. Returns information about a given cipher. Some ciphers accept variable length keys and initialization vectors. By default, the `crypto.getCipherInfo()` method will ret...
https://github.com/nodejs/node/blob/main//doc/api/crypto.md
main
nodejs
[ -0.025946633890271187, 0.04059765115380287, -0.046159300953149796, 0.026355022564530373, -0.014029673300683498, -0.05807088315486908, -0.012583165429532528, 0.09801077097654343, -0.045731160789728165, -0.08245528489351273, -0.019977878779172897, -0.04574388265609741, 0.023030174896121025, ...
0.016074
for creating one-shot hash digests of data. It can be faster than the object-based `crypto.createHash()` when hashing a smaller amount of data (<= 5MB) that's readily available. If the data can be big or if it is streamed, it's still recommended to use `crypto.createHash()` instead. The `algorithm` is dependent on the ...
https://github.com/nodejs/node/blob/main//doc/api/crypto.md
main
nodejs
[ 0.041376251727342606, 0.0742773488163948, -0.0526127889752388, 0.006245656404644251, 0.06809690594673157, -0.07166074216365814, -0.06431582570075989, 0.02118673361837864, 0.06516380608081818, -0.013623165898025036, -0.0590713769197464, 0.057508766651153564, -0.022610139101743698, -0.026516...
-0.001181
0. The maximum allowable value is `255` times the number of bytes produced by the selected digest function (e.g. `sha512` generates 64-byte hashes, making the maximum HKDF output 16320 bytes). \* Returns: {ArrayBuffer} Provides a synchronous HKDF key derivation function as defined in RFC 5869. The given `ikm`, `salt` a...
https://github.com/nodejs/node/blob/main//doc/api/crypto.md
main
nodejs
[ 0.033764682710170746, 0.004171136766672134, -0.06276016682386398, -0.07524372637271881, -0.053166113793849945, -0.04928140714764595, 0.024144969880580902, 0.035068292170763016, -0.056819427758455276, -0.018727177754044533, -0.004189835861325264, -0.005396879743784666, 0.104511559009552, -0...
0.028654
a longer amount of time to complete. The `salt` should be as unique as possible. It is recommended that a salt is random and at least 16 bytes long. See [NIST SP 800-132][] for details. When passing strings for `password` or `salt`, please consider [caveats when using strings as inputs to cryptographic APIs][]. ```mjs ...
https://github.com/nodejs/node/blob/main//doc/api/crypto.md
main
nodejs
[ -0.0618564672768116, 0.0213087759912014, -0.0409122072160244, -0.027260078117251396, -0.04182910546660423, -0.03597377985715866, 0.016518963500857353, 0.05085226893424988, 0.01348412036895752, -0.08446306735277176, -0.04048626497387886, -0.011498288251459599, 0.08641905337572098, -0.011319...
0.00548
is used. \* `passphrase` {string|ArrayBuffer|Buffer|TypedArray|DataView} An optional passphrase for the private key. \* `padding` {crypto.constants} An optional padding value defined in `crypto.constants`, which may be: `crypto.constants.RSA\_NO\_PADDING`, `crypto.constants.RSA\_PKCS1\_PADDING`, or `crypto.constants.RS...
https://github.com/nodejs/node/blob/main//doc/api/crypto.md
main
nodejs
[ 0.014121041633188725, 0.02330901473760605, -0.13229617476463318, 0.0000031853580821916694, -0.06705696135759354, -0.04802480712532997, 0.07599971443414688, 0.02709931693971157, 0.048012662678956985, -0.04517662897706032, -0.021768948063254356, -0.009050263091921806, 0.02730846032500267, -0...
0.087725
[`Buffer`][] that will be filled. It also requires that a callback is passed in. If the `callback` function is not provided, an error will be thrown. ```mjs import { Buffer } from 'node:buffer'; const { randomFill } = await import('node:crypto'); const buf = Buffer.alloc(10); randomFill(buf, (err, buf) => { if (err) th...
https://github.com/nodejs/node/blob/main//doc/api/crypto.md
main
nodejs
[ -0.012929873540997505, 0.04399850219488144, -0.06657688319683075, 0.002225371776148677, 0.012134887278079987, -0.0046921661123633385, 0.08758001029491425, 0.005992049816995859, 0.004263664595782757, -0.06427081674337387, -0.0883912667632103, -0.0211756844073534, 0.009718074463307858, -0.03...
0.077245
import { Buffer } from 'node:buffer'; const { randomFillSync } = await import('node:crypto'); const a = new Uint32Array(10); console.log(Buffer.from(randomFillSync(a).buffer, a.byteOffset, a.byteLength).toString('hex')); const b = new DataView(new ArrayBuffer(10)); console.log(Buffer.from(randomFillSync(b).buffer, b.by...
https://github.com/nodejs/node/blob/main//doc/api/crypto.md
main
nodejs
[ 0.017657984048128128, 0.0174032561480999, -0.11335432529449463, -0.03208835795521736, -0.08032607287168503, -0.0343167707324028, 0.06465889513492584, -0.010668354108929634, -0.010465872474014759, -0.05548606067895889, -0.0353291891515255, -0.05021575465798378, -0.024753516539931297, -0.015...
0.036235
to cryptographic APIs][]. The `callback` function is called with two arguments: `err` and `derivedKey`. `err` is an exception object when key derivation fails, otherwise `err` is `null`. `derivedKey` is passed to the callback as a [`Buffer`][]. An exception is thrown when any of the input arguments specify invalid valu...
https://github.com/nodejs/node/blob/main//doc/api/crypto.md
main
nodejs
[ -0.032974839210510254, 0.03894224017858505, -0.06396389752626419, 0.03553585335612297, 0.035421647131443024, -0.025937777012586594, -0.006869220640510321, 0.05292350798845291, 0.019060902297496796, -0.037369851022958755, -0.04563979431986809, -0.0077463663183152676, 0.06226629391312599, 0....
0.011202