Skip to content

This is a midlleware of express.js.it can filter image request by depending config

Notifications You must be signed in to change notification settings

gzqby/express-image-filter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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,
}

About

This is a midlleware of express.js.it can filter image request by depending config

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published