1.0.1 • Published 2 years ago
simplefilesaver v1.0.1
simplefilesaver
Saves File
or Blob
. Nothing else.
Usage
Here's an example. It uses all of the arguments, and uses a File
:
saveFile(new File(["hello"], "", { type: "text/plain" }), "hello.txt");
Importing
To import, just link it as a script tag.