I have a node script and I would like to run it passing the filename/path that just changed. I figured that you can watch files with nodemon or npm watch.
But I could not find anything about how to the the file that just changed to the script. Or I probably did not understand.
Anyone can help with that?