Socket
Book a DemoInstallSign in
Socket

browsersavefile

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

browsersavefile

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

latest
Source
npmnpm
Version
0.0.6
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

browser

FAQs

Package last updated on 17 Mar 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts