tree: d06d7b481f1b9b3ecbcdea5aa0734ed1d363645c
  1. index.js
  2. LICENSE
  3. package.json
  4. readme.md
src/third_party/devtools/node_modules/figures/readme.md

figures Build Status: Linux Build status: Windows

Unicode symbols with Windows CMD fallbacks

and more...

Windows CMD only supports a limited character set.

Install

$ npm install --save figures

Usage

See the source for supported symbols.

const figures = require('figures');

console.log(figures('✔︎ check'));
// On real OSes:  ✔︎ check
// On Windows:    √ check

console.log(figures.tick);
// On real OSes:  ✔︎
// On Windows:    √

API

figures(input)

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.

input

Type: string

String where the unicode symbols will be replaced with fallback symbols depending on the OS.

Figures

NameReal OSesWindows
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♥♥
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

License

MIT © Sindre Sorhus