small debugging middleware


Keywords
debug, middleware, express, debug-ware, javascript, node
License
MIT
Install
npm install debug-ware@1.2.10

Documentation

debug-ware

A small debugging middleware for development purposes akin to expressjs/morgan but directly using a provided debug instance for logging.

Example

let debug = require('debug')('app')
let debugWare = require('debug-ware')
let express = require('express')
let app = express()

// ...

// debug logging
app.use(debugWare(debug))

LICENSE MIT

Credit to expressjs/morgan for their middleware inspiration and the status code colouring.