How to pipe output of a node CLI program to shell?
问题 I basically want to do something like this: $ my-node-cli <some-param> | less Note that less is just an example. I need it to work with any other *nix command. More about the use case: I wrote a node CLI package that searches some online resource and outputs results to the shell. Since the result set can be huge, client wants to do additional operations on it, e.g grep , head , tail , tee , ... anything really. I searched far and wide and I only managed to find the way to pipe into node