Node.js process.argv0 Property
The process.argv0 property is an inbuilt application programming interface of the process module which is used to get the read-only copy of the original value of argv passed to the node.js process when running the command line.
Return Value: This property returns a string that specifies the first argument passed to the process when running in the command line.
Below examples illustrate the use of process.argv0 property in Node.js:
Note: The above program will compile and run by using the
node filename.js command.