@dylan/ip-limiter

0.1.0 • Public • Published

IP Limiter

Middleware for Dylan which limits requests by IP address.

Install

npm install @dylan/ip-limiter

Usage

const dylan = require('dylan');
const ipLimiter = require('@dylan/ip-limiter');
const app = dylan();

app.use(ipLimiter({
  window: 10000, // milliseconds
  limit: 30 // requests limited within the window
}));

/@dylan/ip-limiter/

    Package Sidebar

    Install

    npm i @dylan/ip-limiter

    Weekly Downloads

    1

    Version

    0.1.0

    License

    MIT

    Unpacked Size

    2.27 kB

    Total Files

    4

    Last publish

    Collaborators

    • steadymade
    • shanebo