New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

express-image-filter

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-image-filter

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.

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

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

Keywords

image

FAQs

Package last updated on 04 Mar 2021

Did you know?

Socket

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.

Install

Related posts