buggy-log
v1.0.0
Published
A simple console based debugging tool
Downloads
1
Maintainers
Readme
Buggy Log
A simple Node.js debugging tool
Quickstart
$ node index.js
// index.js
'use strict'
let express = require('express')
let buggy = require('buggy-log')
let app = express()
app.use(function(req, res) {
buggy("Oops! We blew something up!") // Output: "Oops! We blew something up!"
})
app.listen(8080)
VS
$ NODE_ENV=production node index.js
// index.js
'use strict'
let express = require('express')
let buggy = require('buggy-log')
let app = express()
app.use(function(req, res) {
buggy("Oops! We blew something up!") // No output
})
app.listen(8080)