Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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).
- Host: GitHub
- URL: https://github.com/calebmadrigal/js-download
- Owner: calebmadrigal
- License: mit
- Created: 2014-11-12T21:29:39.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-11-12T22:10:51.000Z (about 10 years ago)
- Last Synced: 2024-04-15T06:53:50.177Z (7 months ago)
- Size: 133 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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).