pm2/examples/args.js
Alexandre Strzelewicz 1d73d4897f #38
2013-07-01 11:42:21 +08:00

10 lines
184 B
JavaScript

process.argv.forEach(function (val, index, array) {
console.log(index + ': ' + val);
});
setInterval(function() {
console.log('HERE ARE MY ARGS !!! = ', process.argv);
}, 800);