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