Skip to content

clean-up-after-multer 1.1.12

Install from the command line:
Learn more about npm packages
$ npm install @myrotvorets/clean-up-after-multer@1.1.12
Install via package.json:
"@myrotvorets/clean-up-after-multer": "1.1.12"

About this version

clean-up-after-multer

Quality Gate Status Build and Test

Express.js middleware to clean up uploaded files after multer

Usage

import express from 'express';
import { cleanUploadedFilesMiddleware } from '@myrotvorets/clean-up-after-multer'


const app = express();
app.use(/* your middlewares here */);
app.use(cleanUploadedFilesMiddleware());

Make sure to call next() from your middlewares.

cleanUploadedFilesMiddleware() accepts an argument of type (path: string) => Promise<unknown> to specify the custom unlink() function (in case you want to log unlink failures etc).

Details


Assets

  • clean-up-after-multer-1.1.12.tgz

Download activity

  • Total downloads 127
  • Last 30 days 127
  • Last week 127
  • Today 15