I want to be able to download a given file when pressing a button.The file will be provided via an API call.For now, I will have it in my local storage. So my f
API
You can do it via HTML , but if you have to do it in JS there is https://github.com/eligrey/FileSaver.js/ library.