log-request
Small wrapper around npmlog that logs http requests in nice colors.
Last updated 7 years ago by thlorenz .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install log-request 
SYNC missed versions from official npm registry.

log-request

Small wrapper around npmlog that logs http requests in nice colors.

var express = require('express');
var app = express();

app
  .use(require('log-request'))
  .listen(3000);

Status

Alpha, tests pending -- use at your own risk.

Installation

npm install log-request

API

/**
 * Logs method and url of the given request.
 *
 * @name exports
 * @function
 * @param req {Object} request
 * @param res {Object} (optional) response -  needed to work as connect/express middleware
 * @param next {Function} (optional) needed - to work as connect/express middleware
 */

License

MIT

Current Tags

  • 0.0.1                                ...           latest (7 years ago)

1 Versions

  • 0.0.1                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 1
Last Month 1
Dependencies (2)
Dev Dependencies (3)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |