status-log

1.0.0 • Public • Published

status-log

Prints the status of a response with colors. Hooks into res.on('finish') in order to make sure it happens at the end of the request and has enough data available to it.

usage

var http = require('http')
var status_log = require('status-log')
 
http.createServer(function (req, res) {
  // Call your router and such
  status_log(req, res)
})

Readme

Keywords

Package Sidebar

Install

npm i status-log

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • wraithan