Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
koa-router-multer
Advanced tools
Wrapper of koa-multer, for koa-router.
Tested with Koa 2.x, should work with Koa 1.x as well.
$ npm install --save koa-router-multer
Import the module
import multer from 'koa-router-multer';
Set the upload folder for file uploads
var upload = multer({ dest: 'uploads/' });
Example of resource
route.post('/upload', upload.single('file'), function * (next) {
var filename = this.req.file.filename;
var mimeType = this.req.file.mimetype;
...
...
});
See more, koa-multer
FAQs
Middleware for handling `multipart/form-data` for koa-router
The npm package koa-router-multer receives a total of 15 weekly downloads. As such, koa-router-multer popularity was classified as not popular.
We found that koa-router-multer 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 researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.