Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
save-file-by-url
Advanced tools
在浏览器中通过 url 下载文件。 Download file by url in browser. Live Demo
a
tag do not support renaming when crossing origin.a
tag.a
tag.yarn add save-file-by-url
import saveFileByUrl from 'save-file-by-url';
saveFileByUrl(
'https://dummyimage.com/100x100/894FC4/FFF.png&text=hello',
'hello.png',
);
/**
* @description Create an a element and click it.
*/
export declare function downloadByUrlLegacy(url: string, filename?: string): void;
/**
* @description Download blob by javascript.
*/
export declare function getBlobByUrl(url: string | URL, detectFileName?: boolean): Promise<{
blob: Blob;
filename: string;
}>;
/**
* @description Save blob to local.
*/
export declare function saveBlob(blob: Blob, filename: string): void;
/**
* @description Download blob(file) by url, and save it.
*/
export default function downloadByUrl(url: string | URL, filename?: string): Promise<void>;
FAQs
Download blob(file) by url, and save it.
The npm package save-file-by-url receives a total of 62 weekly downloads. As such, save-file-by-url popularity was classified as not popular.
We found that save-file-by-url 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.