Question:
I have a node server that executes an external python script viachild_process execFile()
I have no problem executing it with a known number of arguments i just pass it like
I do not have access to the python script but python script is ideally able to read unlimited number of arguments and i only can pass arguments via command-line
Answer:
Using the spread operation to spread arrays (...
) you can create a function that accepts unlimited amount of arguments and you spread those arguments into the execFile
If you have better answer, please add a comment about this, thank you!