github.com/iron-io/functions@v0.0.0-20180820112432-d59d7d1c40b2/examples/hello/node/func.js (about) 1 name = "World"; 2 fs = require('fs'); 3 try { 4 obj = JSON.parse(fs.readFileSync('/dev/stdin').toString()) 5 if (obj.name != "") { 6 name = obj.name 7 } 8 } catch(e) {} 9 console.log("Hello", name, "from Node!");