Skip to content

mlezcano1985/file-download

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

file-save-browser

An easy way to download a file from the web browser

Install

npm install file-save-browser

How to use?

You can see the file sample.html with an very easy example.


var base64 = ""; // base64 file content

var type = ""; // file content type

var name = ""; // file name with extension

window.FileDownload(base64, type, name)

.then(() => console.log('download successful.'))

.catch((err) => console.error('download error: ', err));

Support

If you are having general issues with this package, feel free to contact me on Twitter.

If you believe you have found an issue, please report it using the GitHub issue tracker, or better yet, fork the repository and submit a pull request.

If you're using this package, I'd love to hear your thoughts. Thanks!

About

An easy way to download a file from the web browser

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published