Summarize an express request for logging
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.gitignore
History.md
Readme.md
index.js
package.json

Readme.md

request-summary

Summarize an express request for logging.

Example

var summary = require('request-summary');

var app = express();
app.get(function (req, res, next) {
    var request = summary(req, res);
    console.log('Bytes received: ' + request.size);
    next();
});

API

summary(req, res)

Return an object summarizing a req.

License

WWWWWW||WWWWWW
 W W W||W W W
      ||
    ( OO )__________
     /  |           \
    /o o|    MIT     \
    \___/||_||__||_|| *
         || ||  || ||
        _||_|| _||_||
       (__|__|(__|__|