Can I get a full command line as a single string instead of process.argv in Node.js?

Viewed 103

Node.js Process docs:

The process.argv property returns an array containing the command-line arguments passed when the Node.js process was launched.

This is probably as far as it gets, but I just want to double-check. Because process.argv makes things more complicated for what I have in mind. Gluing it back will make a bad service either.

Ideally, I would love to see links to discussions on why it is done this way only, or an example how to get a raw command line without duct tape.

0 Answers
Related