Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Small wrapper around npmlog that logs http requests in nice colors.
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
.jshintrc
LICENSE
README.md
index.js
package.json

README.md

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

Something went wrong with that request. Please try again.