
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
imgdownloader
Advanced tools
npm install imgdownloader
const imgDownloader = require('imgdownloader');
let client = new imgDownloader('images');
client.download('https://ih1.redbubble.net/image.304946829.8458/flat,750x,075,f-pad,750x1000,f8f8f8.u2.jpg', 'image1')
.then((response) =>{
/*
download and save was a success
response = path to the image
*/
});
function getImage2() {
client.download('https://www.vhv.rs/dpng/d/440-4407000_shrek-dankmemes-aesthetic-perfection-cringe-shrek-dank-meme.png', 'image2');
}
function getImage3(){
client.download('https://i.pinimg.com/originals/5e/ff/30/5eff305327dd634da3110514c7cb1187.jpg', 'image3');
}
Promise.all([getImage2(), getImage3()])
.then((response) => {
// ...
});
Note : There is no need to add the the file extension it will automatically be pick up from the url
Type: string
The foler in which you would like to save your future images
Downloads and save a file to the given path.
If the fileName is already taken the current date will be added to avoid overlapping.
Returns a promise that resolves once the downlad and save is finished
Type: string
The url from which you with to get the image
Type: string
The fileName that will be used to save the image. There is no need to give it a file extension.
FAQs
A small module to download and save an image from the web
The npm package imgdownloader receives a total of 4 weekly downloads. As such, imgdownloader popularity was classified as not popular.
We found that imgdownloader 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.