JS – Dalily new .csv file import and use

I’m working on a project that requires a csv file with stats actualized everyday (data.gov).

The goal would be to get the new csv file every day and use the new values in my script, like an API that updates every day could do.

I had the idea to convert it to JSON, to API… but I have no idea how to change the file daily. The process (to summarize) would be:

  1. Get the new file
  2. use the new values contains

Thanks for your help.