Home

Awesome

express-brute-nedb

NPM version License

An express-brute store using nedb

Installation

npm install express-brute-nedb

Usage

const ExpressBrute = require('express-brute'),
      ExpressBruteNedbStore = require('express-brute-nedb');

const store = new ExpressBruteNedbStore({
    filename: './brute.db' // See all available options below
});
const bruteforce = new ExpressBrute(store);

app.post('/auth',
    bruteforce.prevent, // error 429 if we hit this route too often
    (req, res, next) => {
        res.send('Success!');
    }
);

Options

Available parameters:

License

MIT