express-image-filter
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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

Dependencies (0)

    Dev Dependencies (4)

    Package Sidebar

    Install

    npm i express-image-filter

    Weekly Downloads

    2

    Version

    1.0.1

    License

    ISC

    Unpacked Size

    4.13 kB

    Total Files

    4

    Last publish

    Collaborators

    • zgo