From 938887ae6d5ddbd2e75072dce912857c192d3c5f Mon Sep 17 00:00:00 2001 From: Stephen Sawchuk Date: Fri, 21 Aug 2015 15:22:51 -0400 Subject: [PATCH] stream-events --- README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/README.md b/README.md index 3557851..716aa96 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,7 @@ When you get stuck, keep in mind: *If you find any of this information to be inaccurate or incomplete, feel free to contribute a PR!* + #### How can I make a paginated API request? **Problem** @@ -24,6 +25,7 @@ You need to pull down many results from a backend, but it limits the amount of r - https://github.com/timhudson/continue-stream - https://github.com/timhudson/pagination-stream + #### How can I destroy all of the streams in a pipeline if one gets an error? **Problem** @@ -34,6 +36,7 @@ You have a bunch of streams piped together and one gets an error. The other stre - https://github.com/mafintosh/pump - https://github.com/mafintosh/pumpify + #### How can I just get all of the results when they're done coming in? **Problem** @@ -43,6 +46,7 @@ You have a source readable stream but don't really want to do anything stream-y **Solution** - https://github.com/maxogden/concat-stream + #### How can I asynchronously assign a stream after one has already been created? **Problem** @@ -51,3 +55,14 @@ You want to make an API request but have to fetch an access token first. If you **Solution** - https://github.com/mafintosh/duplexify + + +#### How do I know when a stream is first written to or read from? + +**Problem** + +Since it's possible for you (or a user of your library) to create a stream, but then never connect it to anything, or not run it for an unknown amount of time, you might want to wait as long as possible to do something async. + +**Solution** + - https://github.com/stephenplusplus/stream-events + - Note: works well with the [duplexify problem](#duplexify).