sindresorhus / Figures
Licence: mit
Unicode symbols with Windows CMD fallbacks
Stars: ✭ 438
Programming Languages
javascript
184084 projects - #8 most used programming language
Projects that are alternatives of or similar to Figures
Transliterate
Convert Unicode characters to Latin characters using transliteration
Stars: ✭ 152 (-65.3%)
Mutual labels: npm-package, node-module, unicode
Cmd2
cmd2 - quickly build feature-rich and user-friendly interactive command line applications in Python
Stars: ✭ 342 (-21.92%)
Mutual labels: terminal, command-line, unicode
Terminal Link
Create clickable links in the terminal
Stars: ✭ 361 (-17.58%)
Mutual labels: terminal, command-line, npm-package
Conf
Simple config handling for your app or module
Stars: ✭ 707 (+61.42%)
Mutual labels: command-line, npm-package, node-module
Pastel
A command-line tool to generate, analyze, convert and manipulate colors
Stars: ✭ 3,742 (+754.34%)
Mutual labels: terminal, command-line
Fd
A simple, fast and user-friendly alternative to 'find'
Stars: ✭ 19,851 (+4432.19%)
Mutual labels: terminal, command-line
Tv
Quickly view (satellite) imagery directly in your terminal using Unicode 9.0 characters and true color.
Stars: ✭ 347 (-20.78%)
Mutual labels: command-line, unicode
Teip
Select partial standard input and replace with the result of another command efficiently
Stars: ✭ 280 (-36.07%)
Mutual labels: terminal, command-line
Bcal
🔢 Storage and general-purpose calculator
Stars: ✭ 329 (-24.89%)
Mutual labels: terminal, command-line
Sad
CLI search and replace | Space Age seD
Stars: ✭ 350 (-20.09%)
Mutual labels: terminal, command-line
Theme.sh
A script which lets you set your $terminal theme.
Stars: ✭ 290 (-33.79%)
Mutual labels: terminal, command-line
Hyper Site
The official website for the Hyper terminal
Stars: ✭ 289 (-34.02%)
Mutual labels: terminal, command-line
Caporal.js
A full-featured framework for building command line applications (cli) with node.js
Stars: ✭ 3,279 (+648.63%)
Mutual labels: terminal, command-line
Micro
A modern and intuitive terminal-based text editor
Stars: ✭ 18,526 (+4129.68%)
Mutual labels: terminal, command-line
Castero
TUI podcast client for the terminal
Stars: ✭ 375 (-14.38%)
Mutual labels: terminal, command-line
Py cui
A python library for intuitively creating CUI/TUI interfaces with widgets, inspired by gocui.
Stars: ✭ 380 (-13.24%)
Mutual labels: terminal, command-line
Lookatme
An interactive, terminal-based markdown presenter
Stars: ✭ 392 (-10.5%)
Mutual labels: terminal, command-line
sdbm
SDBM non-cryptographic hash function
Stars: ✭ 43 (-90.18%)
Mutual labels: npm-package, node-module
midtrans-node
Unoffficial Midtrans Payment API Client for Node JS | Alternative for Midtrans Official Module | https://midtrans.com
Stars: ✭ 15 (-96.58%)
Mutual labels: npm-package, node-module
figures
Unicode symbols with Windows CMD fallbacks
Windows CMD only supports a limited character set.
Install
$ npm install figures
Usage
See the source for supported symbols.
const figures = require('figures');
console.log(figures('✔︎ check'));
// On non-Windows OSes: ✔︎ check
// On Windows: √ check
console.log(figures.tick);
// On non-Windows OSes: ✔︎
// On Windows: √
console.log(figures.main.tick);
// On all OSes: ✔︎
console.log(figures.windows.tick);
// On all OSes: √
API
figures(string)
Returns the input with replaced fallback Unicode symbols on Windows.
All the below figures are attached to the main export as shown in the example above.
string
Type: string
String where the Unicode symbols will be replaced with fallback symbols depending on the OS.
figures.main
Symbols to use when not running on Windows.
figures.windows
Symbols to use when running on Windows.
Figures
Name | Non-Windows | Windows |
---|---|---|
tick | ✔ | √ |
cross | ✖ | × |
star | ★ | * |
square | ▇ | █ |
squareSmall | ◻ | [ ] |
squareSmallFilled | ◼ | [█] |
play | ▶ | ► |
circle | ◯ | ( ) |
circleFilled | ◉ | (*) |
circleDotted | ◌ | ( ) |
circleDouble | ◎ | ( ) |
circleCircle | ⓞ | (○) |
circleCross | ⓧ | (×) |
circlePipe | Ⓘ | (│) |
circleQuestionMark | ?⃝ | (?) |
bullet | ● | * |
dot | ․ | . |
line | ─ | ─ |
ellipsis | … | ... |
pointer | ❯ | > |
pointerSmall | › | » |
info | ℹ | i |
warning | ⚠ | ‼ |
hamburger | ☰ | ≡ |
smiley | ㋡ | ☺ |
mustache | ෴ | ┌─┐ |
heart | ♥ | ♥ |
nodejs | ⬢ | ♦ |
arrowUp | ↑ | ↑ |
arrowDown | ↓ | ↓ |
arrowLeft | ← | ← |
arrowRight | → | → |
radioOn | ◉ | (*) |
radioOff | ◯ | ( ) |
checkboxOn | ☒ | [×] |
checkboxOff | ☐ | [ ] |
checkboxCircleOn | ⓧ | (×) |
checkboxCircleOff | Ⓘ | ( ) |
questionMarkPrefix | ?⃝ | ? |
oneHalf | ½ | 1/2 |
oneThird | ⅓ | 1/3 |
oneQuarter | ¼ | 1/4 |
oneFifth | ⅕ | 1/5 |
oneSixth | ⅙ | 1/6 |
oneSeventh | ⅐ | 1/7 |
oneEighth | ⅛ | 1/8 |
oneNinth | ⅑ | 1/9 |
oneTenth | ⅒ | 1/10 |
twoThirds | ⅔ | 2/3 |
twoFifths | ⅖ | 2/5 |
threeQuarters | ¾ | 3/4 |
threeFifths | ⅗ | 3/5 |
threeEighths | ⅜ | 3/8 |
fourFifths | ⅘ | 4/5 |
fiveSixths | ⅚ | 5/6 |
fiveEighths | ⅝ | 5/8 |
sevenEighths | ⅞ | 7/8 |
Related
- log-symbols - Colored symbols for various log levels
Get professional support for this package with a Tidelift subscription
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].