1 comment

[ 2.6 ms ] story [ 14.9 ms ] thread
MIT licensed source code: https://github.com/eligrey/FileSaver.js

In case it's not clear, this allows you to generate a file from client-side JS, and allow the user to save the generated file without first having to upload the generated file to the server.