How can you pass command line arguments to the Node.js?

Recommended Answers

All 2 Replies

They are in a global object: process.argv

You don't need to do anything to get them there.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.