
Product
Announcing Precomputed Reachability Analysis in Socket
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
express-brute-lowdb
Advanced tools
A lowdb storage adapter for express-brute middleware
via npm:
$ npm install express-brute-lowdb
via yarn:
$ yarn add express-brute-lowdb
const ExpressBrute = require('express-brute')
const LowdbStore = require('express-brute-lowdb');
const store = new LowdbStore();
const bruteforce = new ExpressBrute(store);
app.post('/auth',
bruteforce.prevent,
(req, res, next) => {
res.send('Success!')
}
);
Available options:
Name | Type | Description | Required |
---|---|---|---|
prefix | String | Prefix for each lowdb key | false |
adapter | Function | lowdb adapter Constructor | false |
adapterArgs | Array | Arguments for adapter Constructor | false |
rootKey | String | name for database objects's root key | false |
Example:
const Memory = require('lowdb/adapters/Memory') // or
const FileSync = require('lowdb/adapters/FileSync')
// defaults:
const options = {
prefix: '',
adapter: Memory, // only `Memory` & `FileSync` adapters are currently supported
adapterArgs: ['express-brute.json'],
rootKey: 'express-brute'
}
const store = new LowdbStore(options);
N.B.: lowdb's Memory
adapter is not suitable for production usage
Changelog for express-brute-lowdb
Licensed under the MIT License. Check the LICENSE file for details.
[0.1.0] - 2018-05-05
FAQs
A lowdb storage adapter for express-brute middleware
The npm package express-brute-lowdb receives a total of 0 weekly downloads. As such, express-brute-lowdb popularity was classified as not popular.
We found that express-brute-lowdb demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
Product
Add secure dependency scanning to Claude Desktop with Socket MCP, a one-click extension that keeps your coding conversations safe from malicious packages.