1.1.12 • Published 11 months ago

@myrotvorets/clean-up-after-multer v1.1.12

Weekly downloads
3
License
MIT
Repository
github
Last release
11 months ago

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).

1.1.9

11 months ago

1.1.8

11 months ago

1.1.12

11 months ago

1.1.10

11 months ago

1.1.7

2 years ago

1.1.6

4 years ago

1.1.5

4 years ago

1.1.4

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago