Skip to content
This repository has been archived by the owner on Apr 2, 2019. It is now read-only.

access-watch/access-watch-middleware

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Access Watch Middleware Build Status Coverage Status

Express/connect middleware js for logging an analyzing web traffic using the AccessWatch service.

Installation

npm install --save access-watch-middleware 

Usage

The config object is directly passed to access-watch-node.

  • The only required parameters is apiKey.
  • You can optionally provide your own caching by passing cache. If cache is not provided, an in-memory cache will be used.
  • If your application is behind a reverse proxy, you will also need to set fwdHeaders.

See access-watch-node for details.

Debugging

To enable verbose logging, include access-watch-middleware in your DEBUG env variable.

For example: npm DEBUG=access-watch-middleware npm start.

Example

See the example code.

Try it out by cloning this repo and run

npm install
npm run example

About

Connect/Express.js middleware for logging and analyzing web traffic using the Access Watch service.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published