response-summary

1.0.0 • Public • Published

response-summary

Summarize an express response.

Example

var summary = require('response-summary');
 
var app = express();
app.get(function (req, res, next) {
  var response = summary(req, res);
  console.log('bytes sent: ' + response.size);
  next();
});

API

summary(req, res)

Return an object summarizing a response.

License

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    619
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    619

Package Sidebar

Install

npm i response-summary

Weekly Downloads

16

Version

1.0.0

License

none

Last publish

Collaborators

  • segmentio
  • ivolo