UNPKG

twitch-toolkit

Version:

A set of tools to integrate with Twitch API, Twitch Chat and Twitch WebHooks.

17 lines (14 loc) 504 B
'use strict'; const inspect = require('util').inspect; const format = require('./format'); const { MESSAGE } = require('triple-beam'); /* * function prettyPrint (info) * Returns a new instance of the prettyPrint Format that "prettyPrint" * serializes `info` objects. This was previously exposed as * { prettyPrint: true } to transports in `winston < 3.0.0`. */ module.exports = format((info, opts) => { info[MESSAGE] = inspect(info, false, opts.depth || null, opts.colorize); return info; });