node package manager
Don’t reinvent the wheel. Reuse code within your team. Create a free org »

hedge

hedge

Basic access authentication (basic auth) middleware for Node.js

Usage

Hedge follows the standard (req, res, next) middleware contract so it should work with stack, express, connect, http-proxy, etc.

See https://github.com/gsf/basic-auth-proxy-server for an example.