Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 1.05 KB

README.md

File metadata and controls

36 lines (25 loc) · 1.05 KB

Holler

This is meant to replace console logs in express routes and middleware. You can place this in your express routes, then comment them out when you don't need them any more. This saves you the time and effort of taking your console logs out of your code when you're done.

Holler lists:

  • request.body
  • request.params
  • request.query
  • response.locals
  • response.body

Holler does not change your data in any way. It should not slow down your Express app in any significant way. It's just console logs.

An example

Holler example

Now you can trace request.body, etc, as it moves through all your middleware, without clogging up your modules with console logs.

Holler is written in Javascript and uses CommonJS import/export for easy use in Node.js.

Install

Install from npm...

npm install @tonydiethelm/holler

Load into your CJS node app...

const holler = require('@tonydiethelm/holler')

Written by Tony Diethelm | github | linked