
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
#pushpop
A lightweight image cropping tool and thumbnail generator for Node.js
##Configuration
var pushpop = require('pushpop');
pushpop.config({
// [required] set the global upload directory //
uploads:path.join(__dirname, '..', '/uploads'),
// [optional] overwrite file names with unique ids //
uniqueIds:true,
// [optional] enable logging //
enableLogs:true,
// [optional] save files to gcloud instead of the local filesystem //
service: { name:'gcloud', bucket:'pushpop'}
})
##Handling Uploads
pushpop is middleware that intercepts incoming POST
requests that contain image data and generates a thumbnail from the metadata contained in the request. It then saves both the source image and thumbnail to a local or remote location of your choosing.
To use it simply add it to your POST
request handler like so:
app.post('/upload', pushpop.upload, function(req, res)
{
if (!pushpop.error){
res.send('ok').status(200);
} else{
res.send(pushpop.error).status(500);
}
});
FAQs
A lightweight image cropping tool and thumbnail generator for Node.js
The npm package pushpop receives a total of 0 weekly downloads. As such, pushpop popularity was classified as not popular.
We found that pushpop 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
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.