Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 446 Bytes

stdin.md

File metadata and controls

18 lines (13 loc) · 446 Bytes

nodejsscriptDocs


nodejsscript / $ / stdin

Variable: 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).