2 ms·
That is done by: process.argv.slice(2)[0] The first two arguments are node, and the name of the file you are running. More here: http://nodejs.org/api/process.h
by nielsbjerg 12y ago
That is done by: process.argv.slice(2)[0]
The first two arguments are node, and the name of the file you are running.
More here: http://nodejs.org/api/process.html#process_process_argv http://nodejs.org/api/process.html#process_process_argv