debug-ware
v1.2.10
Published
small debugging middleware
Downloads
10
Readme
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 and the status code colouring.