Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

log-symbols

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

log-symbols

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

  • 7.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
38M
increased by4.13%
Maintainers
1
Weekly downloads
 
Created

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

Keywords

FAQs

Package last updated on 17 Aug 2024

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