Run function in running process on node js using command line

Viewed 20

I would like to know if it's possible to run a specific function on a running process on Node JS. And how to do this

actually im using

npx run-func server.js functionName

but it completely restarts the file.

For information, I can't split the file in two since I use a database that can only be read by one process. So... If you have any advice please

0 Answers
Related