CipherChaCha20Poly1305.flatMap method | Node.js crypto module | Bun
BuildDocsReferenceGuidesBlogDiscord/
node:crypto/
CipherChaCha20Poly1305/
flatMapMflatMap
Search the reference...
/
BuildDocsReferenceGuidesBlogDiscord/
node:crypto/
CipherChaCha20Poly1305/
flatMapMflatMap
method
crypto.CipherChaCha20Poly1305.flatMapflatMap(fn: (data: any, options?:
Abortable) => any,options?: Pick
ReadableOperatorOptions, 'signal' | 'concurrency'>):
Readable;
This method returns a new stream by applying the given callback to each chunk of the stream and then flattening the result.
It is possible to return a stream or another iterable or async iterable from fn and the result streams will be merged (flattened) into the returned stream.
@param fn
a function to map over every chunk in the stream. May be async. May be a stream or generator.
@returns
a stream flat-mapped with the function fn.
Resources
ReferenceDocsGuidesDiscordMerch StoreGitHubBlog Toolkit
RuntimePackage managerTest runnerBundlerPackage runnerProject
Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco
We're hiring →