
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
@blubox/multer
Advanced tools
A middleware for handling file uploads in your web server.
npm install @blubox/multer
const multer, { Options, File, Storage } = require('@blubox/multer')
const { Controller } = require('blubox')
// Define storage options
const storageOptions = {
destination: './uploads',
filename: (ctx, file) => `${Date.now()}-${file.originalname}`
};
// Initialize storage
const storage = new Storage(storageOptions);
// Define multer options
const multerOptions: Options = {
fields: ['image', 'document'],
extnames: ['.jpg', '.png', '.pdf'],
storage: storage
};
// Create the multer middleware
const multerMiddleware = multer(multerOptions);
const controller = new Controller()
controller.use(multerMiddleware)
fields: Array of field names or objects with name and maxCount properties.
extnames: Array of allowed file extensions.
storage: Instance of the Storage class.
The Storage class provides methods for creating filenames, destinations, and paths based on user-defined functions or strings.
const storage = new Storage({
destination: (ctx, file) => './uploads',
filename: (ctx, file) => `${Date.now()}-${file.originalname}`,
})
FAQs
Blubox multer
We found that @blubox/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.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.