For the satisfaction of my curiosity gene i’d like to play with bash/node combo.
I don’t know how to make those 2 talk together. I just had a great smile on my face finding about TTY.JS 😉
How do I feed terminal’s output (sdtout?) to node? I thought about redirecting the stream to file and read it with node through ‘fs’ module. But there must be some prettier way I bet
thanks in advance.
Something like this should send terminal output to node
Hope this helps