Skip to content

Experience-Monks/browsersavefile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

browser support

#browsersavefile ##browsersavefile(fileName, blob) browsersavefile will take a file name and a Blob object. It will then download the file from the users browser.

Params

  • fileName String - The file name of the file you'd like to save as
  • blob Blob - File you'd like to save out

Example

var browsersavefile = require( 'browsersavefile' );

var someHTML = [ '<div>HELLO WORLD</div>' ],
	blobData = new Blob( someHTML, {type : 'text/html'});
	
browsersavefile( 'my file', blobData );

About

This module will save a blob/file from the browser.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published