Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
web-downloadfile
Advanced tools
File saving and picture conversion,forked from https://github.com/jiang-jackson/web-downloadfile
文件下载 web-downloadfile
$ npm install web-downloadfile --save
# or
$ yarn add web-downloadfile
import { base64ToFileOrBlob, saveFileToBlob, saveFileToLink } from 'web-downloadfile';
主要针对图片 base64转blob对象 或 直接下载文件 但是文件也可用
import { base64ToFileOrBlob } from 'web-downloadfile';
let Blob = base64ToFileOrBlob(base64,'',true);
// or
base64ToFileOrBlob(base64,'',false);
主要用于文件导出下载 支持大部分文件类型 但是文件类型必传
import { saveFileToBlob } from 'web-downloadfile';
saveFileToBlob(Blob,'test','xlsx');
主要pdf文件链接的下载 因为pdf文件链接在浏览器会直接打开 但是其他文件的链接也可以下载 可监听文件下载进度
link必须允许跨越访问 否则无法下载
import { saveFileToLink } from 'web-downloadfile';
saveFileToLink(link,'test','jpg',fn);
FAQs
File saving and picture conversion,forked from https://github.com/jiang-jackson/web-downloadfile
The npm package web-downloadfile receives a total of 0 weekly downloads. As such, web-downloadfile popularity was classified as not popular.
We found that web-downloadfile 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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.