Node.js process get command line parameter
var fs = require('fs'); fs.readFile(process.argv[2],function(err,data){ if(err) /*from w ww. ja v a 2 s .c om*/ return console.log(err); else console.log(data.toString().split('\n').length-1); }); console.log("touch here!!!");