
Security News
CVE Volume Surges Past 48,000 in 2025 as WordPress Plugin Ecosystem Drives Growth
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.
in-browser-download
Advanced tools
Download a Blob, a string or an ArrayBuffer as a file in the browser.
Download a Blob, a string or an ArrayBuffer as a file in the browser.
The 1.x.x versions of this package was mostly a convenience wrapper for datauri-download and base64-arraybuffer.
Starting with 2.x.x, the package does not have any dependency anymore and use newer APIs (namely Blob Urls and TextEncoder). At the time of writing, TextEncoder is not supported yet in Edge so you might want to use a polyfill or use the 1.x.x version of this package.
With npm do:
npm install in-browser-download
const download = require('in-browser-download');
download('some text string', 'text-file.txt');
const download = require('in-browser-download');
const buffer = (new Uint8Array([1, 2, 3, 4, 5])).buffer;
download(buffer, 'binary-file.dat');
Force the download of the given data as a file with the given filename.
Arguments
Check if all the required APIs are supported by the browser. Returns a boolean.
MIT
FAQs
Download a Blob, a string or an ArrayBuffer as a file in the browser.
The npm package in-browser-download receives a total of 140 weekly downloads. As such, in-browser-download popularity was classified as not popular.
We found that in-browser-download demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.