Socket
Socket
Sign inDemoInstall

log-symbols

Package Overview
Dependencies
2
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

log-symbols

Colored symbols for various log levels. Example: `✔︎ Success`


Version published
Maintainers
1
Weekly downloads
26,710,747
decreased by-17.74%
Install size
50.7 kB

Weekly downloads

Package description

What is log-symbols?

The log-symbols package provides a set of symbols for use in console logging, which are especially useful for distinguishing different levels of log messages such as success, info, warning, and error. These symbols are cross-platform and will display correctly on different operating systems, including fallbacks for Windows.

What are log-symbols's main functionalities?

Success Symbol

Displays a green check mark to indicate a successful operation.

const logSymbols = require('log-symbols');
console.log(logSymbols.success, 'Operation successful!');

Info Symbol

Displays a blue 'i' to represent an informational message.

const logSymbols = require('log-symbols');
console.log(logSymbols.info, 'Information message.');

Warning Symbol

Displays a yellow exclamation mark to signal a warning.

const logSymbols = require('log-symbols');
console.log(logSymbols.warning, 'Warning! Something needs attention.');

Error Symbol

Displays a red cross to indicate an error or a problem.

const logSymbols = require('log-symbols');
console.log(logSymbols.error, 'Error! Something went wrong.');

Other packages similar to log-symbols

Readme

Source

log-symbols

Colored symbols for various log levels

Includes fallbacks for Windows CMD which only supports a limited character set.

Install

npm install log-symbols

Usage

import logSymbols from 'log-symbols';

console.log(logSymbols.success, 'Finished successfully!');
// Terminals with Unicode support:     ✔ Finished successfully!
// Terminals without Unicode support:  √ Finished successfully!

API

logSymbols

info
success
warning
error

Keywords

FAQs

Last updated on 22 Oct 2023

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc