node get arguments code example
Example 1: node run parameters
var args = process.argv.slice(2);
Example 2: node get args
console.log(process.argv);
Example 3: node.js parameters
app.get('/index/profile/:id', function (req, res) {
res.end('profile with id' + req.params.id)
});