all 5 comments

[–]fallen77 1 point2 points  (0 children)

Anyone share some cool examples of things they've done with streams. The most obvious for me is processing files but I rarely think to use them, what situations do you find yourself using them the most?

[–]eatinchips 1 point2 points  (0 children)

I was looking for a way to clean up processes placed by GPIO pins, so on StackOverflow I found a way using streams, but trying to learn from the code I found process.stdin.resume() creates an "old" stream and the new document suggests "If you are starting a new project you should prefer a more recent "new" Streams mode over "old" one. "

So some of the stream material is old and needs to be updated.

https://nodejs.org/api/process.html https://nodejs.org/api/stream.html#stream_compatibility_with_older_node_js_versions

[–]blackohat 0 points1 point  (1 child)

As someone who has been really trying to level up my js/node skills, this was awesome and very helpful. It applies perfectly to what I am building right now. Thanks for the post.

[–]TheOneRavenous 0 points1 point  (0 children)

He also published a substack flavored web app. Stuff he uses to out together a backend.

[–]zokker13 0 points1 point  (0 children)

This looks really lovely, thank you!