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

beautify-console-log

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

beautify-console-log

This is a further beautification and encapsulation of the 'console' object, including console. log, console. info, console. warn, and console. error.

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
214
decreased by-6.55%
Maintainers
1
Weekly downloads
 
Created
Source

#beautify-console-log

Introduction

This is a further beautification and encapsulation of the 'console' object, including console. log, console. info, console. warn, and console. error.

You can add custom console printing prefixes and beautify the content (rule reference https://developer.mozilla.org/en-US/docs/Web/API/Console ), can close console printing at any time

Software Architecture

Software Architecture Description

Installation Tutorial

npm i beauty-console-log -- save

or


yarn add beauty-console-log

Instructions for use
  1. Simple use

const log = BeautifyConsole.getInstance();

//The usage is consistent with the normal console.info()

Log.info(1234, '4', [3, 5]);



  1. Supported console types

const log = BeautifyConsole. getInstance();

Log.info(1234, '4', [3, 5]);

Log.log(1234, '4', [3, 5]);

Log.warn(1234, '4', [3, 5]);

Log.error(1234, '4', [3, 5]);

  1. Add custom console log headers

const log = BeautifyConsole. getInstance();

Log.setPadStartText('log ','hello world').info(1234,'4 ', [3, 5]);

Participation contribution
  1. Fork warehouse

  2. Create a new Feat_ Xxx branch

  3. Submit Code

  4. Create a new Pull Request

FAQs

Package last updated on 17 Sep 2023

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