0.0.6 • Published 8 years ago

browsersavefile v0.0.6

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

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 );
0.0.6

8 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

10 years ago

0.0.0

10 years ago