eligrey / eligrey/FileSaver.js
Downloading a file without a name, just extension, i.e ".env"
Open
- Dominant language
- JavaScript
- Stars
- 22k
- Forks
- 4.3k
- PR merge metrics
- No merged PRs in 30d
Description
```js
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 ?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.