DEV Community

Omar Dulaimi
Omar Dulaimi

Posted on • Edited on

Build a String Telephone in Nodejs

I think it's time for a practical fun tip!

Did you know you could pipe the standard input stream to the standard output stream using the 𝗽𝗢𝗽𝗲 method?

This let's you get a mirroring effect; where whatever you type will be echoed back to you on the terminal.

Give it a try yourself!

Hopefully this will get me to talk about streams in my future posts, as they are so underrated in the π—‘π—Όπ—±π—²π—·π˜€ community.

Did you learn something new today?

Like and share this post, and follow me for more!

pipe streams

Top comments (0)