mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2025-03-30 15:08:32 +00:00
Add instructions to pipe unarmored encrypted data on Node.js
This commit is contained in:
parent
b49e787ba9
commit
e14a3c78b7
@ -302,6 +302,10 @@ Where the value can be any of:
|
||||
if (done) break;
|
||||
console.log('new chunk:', value); // Uint8Array
|
||||
}
|
||||
|
||||
// Or, in Node.js, you can pipe the above stream as follows:
|
||||
const nodeStream = openpgp.stream.webToNode(encrypted);
|
||||
nodeStream.pipe(nodeWritableStream);
|
||||
})();
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user