New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

winston-format-pretty-console

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

winston-format-pretty-console

[![Version npm](https://img.shields.io/npm/v/winston-format-pretty-console.svg?style=flat-square)](https://www.npmjs.com/package/winston-format-pretty-console)

  • 1.2.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
Maintainers
1
Weekly downloads
 
Created
Source

Winston@3 pretty console format

Version npm

Winston@3 pretty console formatter.

Why?

  • Because Winston v3 broke fundamental console features that worked fine in v2 (details)
  • Because logging to the console should be delightful 🎉

Why not winston-console-format?

  • Looks really nice, but has different design goals
  • Requires message to be a string (as opposed to anything we want)
  • Doesn't support some of features mentioned below

Features

  • Supports any number of arguments, of any type, which will be pretty printed to the console (message argument can be anything!)
  • Supports colorized string values just fine (e.g. using chalk)
  • Formats literal values like number, null, undefined, function, etc.
  • Handles Error objects. The error be any argument
  • Supports formatting configuration, per logger and even per single log

Design Decisions

  • Should work as expected, basically like console.log
  • No fancy colors, should be clean by default
  • Provides easy Copy/Paste experience of multi-line objects, etc.

Keywords

FAQs

Package last updated on 01 Sep 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc