I am writing an application that can download files from given URLs.
However, the files can be from many protolcols such as HTTP, HTTPS, FTP, FTPS, etc.
Is there a generic way to download files? (Using JavaScript/Node.js)
Note: I have checked this question but it requires http
module which isn't the generic solution and cannot be used with HTTPS, FTP, FTPS, etc.