๐Ÿš€ Socket Launch Week ๐Ÿš€ Day 3: Socket Acquires Coana.Learn More โ†’
Socket
Sign inDemoInstall
Socket

figures

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

figures

Unicode symbols with fallbacks for older terminals

6.1.0
latest
Source
npm
Version published
Weekly downloads
36M
-10.23%
Maintainers
1
Weekly downloads
ย 
Created

What is figures?

The figures npm package provides a set of unicode symbols with fallbacks to ASCII characters for better compatibility across different platforms. It allows developers to enhance the visual appeal and readability of their console output without worrying about cross-platform issues.

What are figures's main functionalities?

Cross-platform symbols

This feature allows the use of symbols like ticks and crosses, with automatic fallbacks to simpler ASCII characters on platforms that do not support the more complex unicode symbols. The code sample demonstrates how to use the tick and cross symbols.

"use strict";\nconst figures = require('figures');\nconsole.log(figures.tick, figures.cross);

Customizable symbol fallbacks

Developers can customize the fallbacks for symbols, providing an alternative character for environments that do not support the default unicode symbol. This code sample shows how to replace the default tick symbol with a custom character.

"use strict";\nconst figures = require('figures');\nfigures.replace({ tick: 'โˆš' });\nconsole.log(figures.tick);

Other packages similar to figures

Keywords

unicode

FAQs

Package last updated on 04 Mar 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