Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/calebmadrigal/js-download

Example of how to make Javascript initiate a binary file download (in this case, an image stored in Base64).
https://github.com/calebmadrigal/js-download

Last synced: about 1 month ago
JSON representation

Example of how to make Javascript initiate a binary file download (in this case, an image stored in Base64).

Awesome Lists containing this project

README

        

js-download
===========

Example of how to make Javascript initiate a binary file download (in this case, an image stored in Base64).

**Usage: Just open the html file in your browser and click the button :)**

This html file is completely self-contained. It includes [Filesaver.js](https://github.com/eligrey/FileSaver.js) and [Daniel Guerrero's binary base64 decoding code](https://github.com/danguer/blog-examples/blob/master/js/base64-binary.js).