DEV Community

Discussion on: Natively parse command line args with Nodejs

Collapse
 
jcubic profile image
Jakub T. Jankiewicz • Edited

But this is not something that Node is doing, every single program in the system gets argument as array of strings. So this is by no means parsing by Node. If you will learn C language you will know that arguments in the system are in the form of array of strings. So No Parsing. So your "parsing" is done by the operation system.

Thread Thread
 
omardulaimi profile image
Omar Dulaimi

I think you're right about the string array args. Because argv seems like a convention taken from C and C++. Java havd something similar too. If OS is doing the parsing then that's great, at least it's done somewhere under the hood haha. Thanks for your explanation. I appreciate it.