This method allows filtering the stream. For each chunk in the stream the fn function will be called and if it returns a truthy value, the chunk will be passed to the result stream. If the fn function returns a promise - that promise will be awaited.
BrotliCompress.filter method | Node.js zlib module | Bun BuildDocsReferenceGuidesBlogDiscord/node:zlib/BrotliCompress/filterMfilter BuildDocsReferenceGuidesBlogDiscord /node:zlib/BrotliCompress/filterMfilter zlib.BrotliCompress.filterfilter(fn: (data: any, options?: Abortable) => boolean | Promiseboolean>,options?: ReadableOperatorOptions): Readable; @param fn @returns
Search the reference...
/
method
a function to filter chunks from the stream. Async or not.
a stream filtered with the predicate fn.
Resources
ReferenceDocsGuidesDiscordMerch StoreGitHubBlogToolkit
RuntimePackage managerTest runnerBundlerPackage runnerProject
Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicenseBaked with ❤️ in San Francisco
We're hiring →BrotliCompress.filter method | Node.js zlib module | Bun,AI智能索引,全网链接索引,智能导航,网页索引
- API documentation for method node:zlib.BrotliCompress.filter | Bun