nodejsscript • Docs
nodejsscript / $ / stdin
const
stdin:STDIN
Holding stdin
when script was executed with pipe.
echo TEST | nodejsscript script.js
echo($.stdin.text());//= "TEST"
…but it can be empty in case of platform specific error (see $.isFIFO).