Answers for "using chalk and morgan together"

0

using chalk and morgan together

var chalk = require('chalk')
var morgan = require('morgan')

app.use(morgan(function (tokens, req, res) {
  return chalk.blue(tokens.method(req, res))
    + ' ' + chalk.green(tokens.url(req, res))
    + ' ' + chalk.red(tokens['response-time'](req, res))
}))
Posted by: Guest on September-17-2020

Code answers related to "using chalk and morgan together"

Code answers related to "Javascript"

Browse Popular Code Answers by Language