pipe.js:
pipe.js
process.stdout.write(require('fs').readFileSync(0, 'utf-8')) // or process.stdin.pipe(process.stdout)
script -q /dev/null node -p "Boolean(0)" | node pipe.js # will print yellow false