https://github.com/pixelscommander/download-file-js
Intelligent JavaScript solution for file downloading.
https://github.com/pixelscommander/download-file-js
Last synced: about 1 year ago
JSON representation
Intelligent JavaScript solution for file downloading.
- Host: GitHub
- URL: https://github.com/pixelscommander/download-file-js
- Owner: PixelsCommander
- Created: 2013-04-05T17:49:11.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2017-09-13T10:13:42.000Z (almost 9 years ago)
- Last Synced: 2025-05-09T19:20:00.351Z (about 1 year ago)
- Language: JavaScript
- Homepage: pixelscommander.com/polygon/downloadjs/
- Size: 186 KB
- Stars: 201
- Watchers: 10
- Forks: 110
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
DOWNLOAD JS
===========
Intelligent JavaScript solution for file downloading.
Easy to use - just call downloadFile(URL) global function.
Why DownloadJS?
---------------
- Avoids stupid blank screens after file starts downloading in Chrome, Safari;
- Ignores content type by using virtual link with "download" attribute. So file will be downloaded even if content type says browser to show file`s content in new window. This allows to download PNGs, HTMLs and so on;
- Small function without any dependencies.
- Informs user if downloading is restricted on his device avoiding unpredicted behaviour.
Bug tracker
-----------
Have a bug? Please create an issue here on GitHub!
https://github.com/PixelsCommander/Download-File-JS/issues
License
---------------------
Copyright 2013 Denis Radin.
Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0