Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
js-image-generator
Advanced tools
This is a node module for generating random images.
I needed this for creating dummy datasets including images in combination with faker.js and / or choice.js
Uses the jpeg-js library: https://github.com/eugeneware/jpeg-js
npm install js-image-generator
var fs = require('fs');
var imgGen = require('js-image-generator');
// Generate one image
imgGen.generateImage(800, 600, 80, function(err, image) {
fs.writeFileSync('dummy.jpg', image.data);
});
// Generate multiple images
for(var i=1;i<=10;i++){
imgGen.generateImage(800, 600, 80, function(err, image) {
console.log("Generating image #" +i);
fs.writeFileSync('dummy-' + i + '.jpg', image.data);
});
}
FAQs
Random image generator
The npm package js-image-generator receives a total of 47,574 weekly downloads. As such, js-image-generator popularity was classified as popular.
We found that js-image-generator 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
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.