FileSaver.js
FileSaver.js copied to clipboard
Downloading a file without a name, just extension, i.e ".env"
var blob = new Blob(["REACT_APP_DNS=example.com"], {type: "text/plain;charset=utf-8"});
saveAs(blob, ".env");
This code creates a file "env.txt", and if you add a space before the dot like this " .env" it created this file "_.env" I checked stackoverflow about it there is nothing, refering to this case, but an unanswered question. Is there anyway to download a ".env" file using FileSaver.js ?
Did you find a solution to this?