npm.devtool.tech
πŸ‘ You can access figures package with using figures variable in browser devtools!
Unicode symbols with Windows CMD fallbacks

code/package/bundle size

0B
publish
0B
install
0B
bundle minified
0B
bundle gzipped

figures Build Status

Unicode symbols with Windows CMD fallbacks

and more...

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

NameNon-WindowsWindows
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


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.
πŸ”ŽExplore PackageπŸ”ŽCDN Script

Score

Popularity65/100
Quality91/100
Maintenance100/100