TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: A Node.js stream library that works with promises

10 pointsby reconbotover 6 years ago

1 comment

reconbotover 6 years ago
Hi I built this little stream processing library so I could write things like;<p><pre><code> const stats = await pipe( Nodes.scan({ fields: true }), map(generateStats), tap(() =&gt; count++), reduce(mergeGraphStats, {}) ) </code></pre> and have <i>generateStats</i> and <i>mergeGraphStats</i> be async functions and not have to worry about error handling and pushing more than one object at a time in a read stream. We use it to process billions of events and objects a day. It makes nodejs streams fun to use.<p>Hope you find it as useful as we do.
评论 #18396406 未加载