# brutesql

> An express-brute memory store built with mysql

Latest version **1.0.2** (published 2021-09-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install brutesql
pnpm add brutesql
yarn add brutesql
bun add brutesql
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2021-09-09 |
| First published | 2021-09-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 4.3 KB |
| Known vulnerabilities | 0 (+8 in 2 direct dependencies) |
| Install scripts | no |
| Author | Marston Connell |
| Maintainers | marstonc |
| Keywords | brute, mysql, sql, store |

## Links

- npm: https://www.npmjs.com/package/brutesql
- npm.io page: https://npm.io/package/brutesql

## Dependencies (4)

- [moment](https://npm.io/package/moment.md) ^2.29.1
- [mysql2](https://npm.io/package/mysql2.md) ^2.3.0
- [underscore](https://npm.io/package/underscore.md) ^1.13.1
- [express-brute](https://npm.io/package/express-brute.md) ^1.0.1

## Recent versions

- 1.0.2 (latest) — 2021-09-09
- 1.0.1 — 2021-09-09
- 1.0.0 — 2021-09-09

## README

MySQL store adapter for the [express-brute](https://github.com/AdamPflug/express-brute).

## Installation

~~~
npm install brutesql
~~~

## Usage

~~~javascript
const ExpressBrute = require('express-brute');
const BruteSQL = require('brutesql');
const bruteStore = new BruteSQL({host: process.env.DB_HOST, user: process.env.DB_USER, pass: process.env.DB_PASS});
const bruteforce = new ExpressBrute(bruteStore);


app.post('/auth', bruteforce.prevent, (req, res) => {});
~~~

## License

This project is licensed under the MIT license.

---
_Source: https://npm.io/package/brutesql · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
