express-image-filter
v1.0.1
Published
this is a middleware of Express.js.it is used filter image request by depending config.it must be in front of express.static server.
Maintainers
Readme
express-imagefilter
This is a midlleware of express.js.it can filter image request by depending config;
usage
npm i express-image-filter
import express from 'express';
import filterImg from 'express-image-filter';
const app = express();
app.use(filterImg({
blockNotImg: true,
allowHost: ['localhost:5000'],
},express.static('./file')));
type config = {
allowHost?: string[],
blockNotImg?: boolean,
}