New to node.js. My requirement is to change file name of a CSV file to a different path (new file) every day at 15 minutes past midnight. Presently using fast-csv to write the output. How can I change the path of the file dynamically to another path and CSV file at the above mentioned time, such that the new file takes over the writing of output and the previous one is saved and closed. How can I accomplish this?
Edit: I can use node-schedule for the scheduling part.