eligrey / eligrey/FileSaver.js

dist/FileSaver.min.js lacks license header

Open
#668 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
22k
Forks
4.3k
PR merge metrics
No merged PRs in 30d

Description

I'm trying to incorporate FileSaver.js into an "editable HTML file" concept as the means by which changes get saved, and the minified version most easily accessible to my build scripting via `require.resolve("file-saver")` lacks an equivalent to this:

```js
/*
* FileSaver.js
* A saveAs() FileSaver implementation.
*
* By Eli Grey, http://eligrey.com
*
* License : https://github.com/eligrey/FileSaver.js/blob/master/LICENSE.md (MIT)
* source : http://purl.eligrey.com/github/FileSaver.js
*/
```

Please resolve this so I don't have to either manually copy the text of `LICENSE.md` into my built HTML file (the most conservative interpretation) to satisfy the license's terms or start researching to reinvent whatever of FileSaver.js is still relevant to implement just the functionality I need on just the browsers I intend to support.

**EDIT:** I still need to test for compatibility, but it looks like I can cover all major browsers with only two cases (`msSaveOrOpenBlob` and `URL.createObjectURL` combined with a temporary `a` element), so this probably isn't as high a priority as I expected.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.