How to run a function in a script from the command line in Node.js?
I'm trying to execute a specific function from a Node.js script directly through the command line. The script contains multiple functions, but I want to know how to target and run just one of them without modifying the script every time. What’s the right way to approach this?