more tutorial

This commit is contained in:
Chad Arimura
2017-05-25 14:31:22 -07:00
parent a565c09c7f
commit f97ac83255
37 changed files with 515 additions and 2 deletions

View File

@@ -0,0 +1,9 @@
name = "World";
fs = require('fs');
try {
obj = JSON.parse(fs.readFileSync('/dev/stdin').toString())
if (obj.name != "") {
name = obj.name
}
} catch(e) {}
console.log("Hello", name, "from Node!");