Home

Awesome

express-brute-couchbase

=======================

A Couchbase store for express-brute

Installation

via npm:

  $ npm install express-brute-couchbase

Usage

var ExpressBrute = require('express-brute'),
	CouchbaseStore = require('express-brute-couchbase');

var store = new CouchbaseStore('http://127.0.0.1:8091');
var bruteforce = new ExpressBrute(store);

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

Options

For details see couchnode.