Gathering detailed insights and metrics for figures
Gathering detailed insights and metrics for figures
Gathering detailed insights and metrics for figures
Gathering detailed insights and metrics for figures
@inquirer/figures
Vendored version of figures, for CJS compatibility
log-symbols
Colored symbols for various log levels. Example: `✔︎ Success`
markdown-it-implicit-figures
Render images occurring by itself in a paragraph as `<figure><img ...></figure>`, similar to pandoc's implicit_figures
markdown-it-image-figures
Render images occurring by itself in a paragraph as a figure with support for figcaptions.
Unicode symbols with fallbacks for older terminals
npm install figures
Typescript
Module System
Min. Node Version
Node Version
NPM Version
99.7
Supply Chain
99.5
Quality
76.9
Maintenance
100
Vulnerability
100
License
JavaScript (93.74%)
TypeScript (6.26%)
Total Downloads
8,478,874,589
Last Day
6,656,276
Last Week
30,054,037
Last Month
136,674,430
Last Year
1,788,232,359
599 Stars
129 Commits
23 Forks
12 Watching
1 Branches
11 Contributors
Minified
Minified + Gzipped
Latest Version
6.1.0
Package Id
figures@6.1.0
Unpacked Size
35.98 kB
Size
7.07 kB
File Count
5
NPM Version
9.2.0
Node Version
21.6.2
Publised On
04 Mar 2024
Cumulative downloads
Total Downloads
Last day
-4.5%
6,656,276
Compared to previous day
Last week
-15.6%
30,054,037
Compared to previous week
Last month
3.8%
136,674,430
Compared to previous month
Last year
10.4%
1,788,232,359
Compared to previous year
1
Unicode symbols with fallbacks for older terminals
Terminals such as Windows Console Host (and CMD) only support a limited character set.
1npm install figures
1import figures, {mainSymbols, fallbackSymbols, replaceSymbols} from 'figures'; 2 3console.log(figures.tick); 4// On terminals with Unicode symbols: ✔ 5// On other terminals: √ 6 7console.log(mainSymbols.tick); 8// On all terminals: ✔ 9 10console.log(fallbackSymbols.tick); 11// On all terminals: √ 12 13console.log(replaceSymbols('✔ check')); 14// On terminals with Unicode symbols: ✔ check 15// On other terminals: √ check
Type: object
Symbols to use on any terminal.
Symbols to use when the terminal supports Unicode symbols.
Symbols to use when the terminal does not support Unicode symbols.
Returns the input with replaced fallback symbols if the terminal has poor Unicode support.
All the below figures are attached to the default export as shown in the example above.
Type: string
String where the Unicode symbols will be replaced with fallback symbols depending on the terminal.
Type: object
Type: boolean
Default: true
if the terminal has poor Unicode support
Whether to replace symbols with fallbacks.
This can be set to true
to always use fallback symbols, whether the terminal has poor Unicode support or not.
1import {replaceSymbols} from 'figures'; 2 3console.log(replaceSymbols('✔ check', {useFallback: true})); 4// On terminals with Unicode symbols: √ check 5// On other terminals: √ check
Fallback
characters are only shown when they differ from the Main
ones.
Name | Main | Fallback |
---|---|---|
tick | ✔ | √ |
info | ℹ | i |
warning | ⚠ | ‼ |
cross | ✘ | × |
square | █ | |
squareSmall | ◻ | □ |
squareSmallFilled | ◼ | ■ |
squareDarkShade | ▓ | |
squareMediumShade | ▒ | |
squareLightShade | ░ | |
squareTop | ▀ | |
squareBottom | ▄ | |
squareLeft | ▌ | |
squareRight | ▐ | |
squareCenter | ■ | |
circle | ◯ | ( ) |
circleFilled | ◉ | (*) |
circleDotted | ◌ | ( ) |
circleDouble | ◎ | ( ) |
circleCircle | ⓞ | (○) |
circleCross | ⓧ | (×) |
circlePipe | Ⓘ | (│) |
circleQuestionMark | ?⃝ | (?) |
radioOn | ◉ | (*) |
radioOff | ◯ | ( ) |
checkboxOn | ☒ | [×] |
checkboxOff | ☐ | [ ] |
checkboxCircleOn | ⓧ | (×) |
checkboxCircleOff | Ⓘ | ( ) |
questionMarkPrefix | ?⃝ | ? |
bullet | ● | |
dot | ․ | |
ellipsis | … | |
pointer | ❯ | > |
pointerSmall | › | › |
triangleUp | ▲ | |
triangleUpSmall | ▴ | |
triangleUpOutline | △ | ∆ |
triangleDown | ▼ | |
triangleDownSmall | ▾ | |
triangleLeft | ◀ | ◄ |
triangleLeftSmall | ◂ | |
triangleRight | ▶ | ► |
triangleRightSmall | ▸ | |
lozenge | ◆ | ♦ |
lozengeOutline | ◇ | ◊ |
home | ⌂ | |
hamburger | ☰ | ≡ |
smiley | ㋡ | ☺ |
mustache | ෴ | ┌─┐ |
heart | ♥ | |
star | ★ | ✶ |
play | ▶ | ► |
musicNote | ♪ | |
musicNoteBeamed | ♫ | |
nodejs | ⬢ | ♦ |
arrowUp | ↑ | |
arrowDown | ↓ | |
arrowLeft | ← | |
arrowRight | → | |
arrowLeftRight | ↔ | |
arrowUpDown | ↕ | |
almostEqual | ≈ | |
notEqual | ≠ | |
lessOrEqual | ≤ | |
greaterOrEqual | ≥ | |
identical | ≡ | |
infinity | ∞ | |
subscriptZero | ₀ | |
subscriptOne | ₁ | |
subscriptTwo | ₂ | |
subscriptThree | ₃ | |
subscriptFour | ₄ | |
subscriptFive | ₅ | |
subscriptSix | ₆ | |
subscriptSeven | ₇ | |
subscriptEight | ₈ | |
subscriptNine | ₉ | |
oneHalf | ½ | |
oneThird | ⅓ | |
oneQuarter | ¼ | |
oneFifth | ⅕ | |
oneSixth | ⅙ | |
oneSeventh | ⅐ | 1/7 |
oneEighth | ⅛ | |
oneNinth | ⅑ | 1/9 |
oneTenth | ⅒ | 1/10 |
twoThirds | ⅔ | |
twoFifths | ⅖ | |
threeQuarters | ¾ | |
threeFifths | ⅗ | |
threeEighths | ⅜ | |
fourFifths | ⅘ | |
fiveSixths | ⅚ | |
fiveEighths | ⅝ | |
sevenEighths | ⅞ | |
line | ─ | |
lineBold | ━ | |
lineDouble | ═ | |
lineDashed0 | ┄ | |
lineDashed1 | ┅ | |
lineDashed2 | ┈ | |
lineDashed3 | ┉ | |
lineDashed4 | ╌ | |
lineDashed5 | ╍ | |
lineDashed6 | ╴ | |
lineDashed7 | ╶ | |
lineDashed8 | ╸ | |
lineDashed9 | ╺ | |
lineDashed10 | ╼ | |
lineDashed11 | ╾ | |
lineDashed12 | − | |
lineDashed13 | – | |
lineDashed14 | ‐ | |
lineDashed15 | ⁃ | |
lineVertical | │ | |
lineVerticalBold | ┃ | |
lineVerticalDouble | ║ | |
lineVerticalDashed0 | ┆ | |
lineVerticalDashed1 | ┇ | |
lineVerticalDashed2 | ┊ | |
lineVerticalDashed3 | ┋ | |
lineVerticalDashed4 | ╎ | |
lineVerticalDashed5 | ╏ | |
lineVerticalDashed6 | ╵ | |
lineVerticalDashed7 | ╷ | |
lineVerticalDashed8 | ╹ | |
lineVerticalDashed9 | ╻ | |
lineVerticalDashed10 | ╽ | |
lineVerticalDashed11 | ╿ | |
lineDownLeft | ┐ | |
lineDownLeftArc | ╮ | |
lineDownBoldLeftBold | ┓ | |
lineDownBoldLeft | ┒ | |
lineDownLeftBold | ┑ | |
lineDownDoubleLeftDouble | ╗ | |
lineDownDoubleLeft | ╖ | |
lineDownLeftDouble | ╕ | |
lineDownRight | ┌ | |
lineDownRightArc | ╭ | |
lineDownBoldRightBold | ┏ | |
lineDownBoldRight | ┎ | |
lineDownRightBold | ┍ | |
lineDownDoubleRightDouble | ╔ | |
lineDownDoubleRight | ╓ | |
lineDownRightDouble | ╒ | |
lineUpLeft | ┘ | |
lineUpLeftArc | ╯ | |
lineUpBoldLeftBold | ┛ | |
lineUpBoldLeft | ┚ | |
lineUpLeftBold | ┙ | |
lineUpDoubleLeftDouble | ╝ | |
lineUpDoubleLeft | ╜ | |
lineUpLeftDouble | ╛ | |
lineUpRight | └ | |
lineUpRightArc | ╰ | |
lineUpBoldRightBold | ┗ | |
lineUpBoldRight | ┖ | |
lineUpRightBold | ┕ | |
lineUpDoubleRightDouble | ╚ | |
lineUpDoubleRight | ╙ | |
lineUpRightDouble | ╘ | |
lineUpDownLeft | ┤ | |
lineUpBoldDownBoldLeftBold | ┫ | |
lineUpBoldDownBoldLeft | ┨ | |
lineUpDownLeftBold | ┥ | |
lineUpBoldDownLeftBold | ┩ | |
lineUpDownBoldLeftBold | ┪ | |
lineUpDownBoldLeft | ┧ | |
lineUpBoldDownLeft | ┦ | |
lineUpDoubleDownDoubleLeftDouble | ╣ | |
lineUpDoubleDownDoubleLeft | ╢ | |
lineUpDownLeftDouble | ╡ | |
lineUpDownRight | ├ | |
lineUpBoldDownBoldRightBold | ┣ | |
lineUpBoldDownBoldRight | ┠ | |
lineUpDownRightBold | ┝ | |
lineUpBoldDownRightBold | ┡ | |
lineUpDownBoldRightBold | ┢ | |
lineUpDownBoldRight | ┟ | |
lineUpBoldDownRight | ┞ | |
lineUpDoubleDownDoubleRightDouble | ╠ | |
lineUpDoubleDownDoubleRight | ╟ | |
lineUpDownRightDouble | ╞ | |
lineDownLeftRight | ┬ | |
lineDownBoldLeftBoldRightBold | ┳ | |
lineDownLeftBoldRightBold | ┯ | |
lineDownBoldLeftRight | ┰ | |
lineDownBoldLeftBoldRight | ┱ | |
lineDownBoldLeftRightBold | ┲ | |
lineDownLeftRightBold | ┮ | |
lineDownLeftBoldRight | ┭ | |
lineDownDoubleLeftDoubleRightDouble | ╦ | |
lineDownDoubleLeftRight | ╥ | |
lineDownLeftDoubleRightDouble | ╤ | |
lineUpLeftRight | ┴ | |
lineUpBoldLeftBoldRightBold | ┻ | |
lineUpLeftBoldRightBold | ┷ | |
lineUpBoldLeftRight | ┸ | |
lineUpBoldLeftBoldRight | ┹ | |
lineUpBoldLeftRightBold | ┺ | |
lineUpLeftRightBold | ┶ | |
lineUpLeftBoldRight | ┵ | |
lineUpDoubleLeftDoubleRightDouble | ╩ | |
lineUpDoubleLeftRight | ╨ | |
lineUpLeftDoubleRightDouble | ╧ | |
lineUpDownLeftRight | ┼ | |
lineUpBoldDownBoldLeftBoldRightBold | ╋ | |
lineUpDownBoldLeftBoldRightBold | ╈ | |
lineUpBoldDownLeftBoldRightBold | ╇ | |
lineUpBoldDownBoldLeftRightBold | ╊ | |
lineUpBoldDownBoldLeftBoldRight | ╉ | |
lineUpBoldDownLeftRight | ╀ | |
lineUpDownBoldLeftRight | ╁ | |
lineUpDownLeftBoldRight | ┽ | |
lineUpDownLeftRightBold | ┾ | |
lineUpBoldDownBoldLeftRight | ╂ | |
lineUpDownLeftBoldRightBold | ┿ | |
lineUpBoldDownLeftBoldRight | ╃ | |
lineUpBoldDownLeftRightBold | ╄ | |
lineUpDownBoldLeftBoldRight | ╅ | |
lineUpDownBoldLeftRightBold | ╆ | |
lineUpDoubleDownDoubleLeftDoubleRightDouble | ╬ | |
lineUpDoubleDownDoubleLeftRight | ╫ | |
lineUpDownLeftDoubleRightDouble | ╪ | |
lineCross | ╳ | |
lineBackslash | ╲ | |
lineSlash | ╱ |
If you cannot find the character you're looking for in the table above, please look at this full list of cross-platform terminal characters.
The following terminals are not officially supported:
They can display most but not all of the symbols listed above.
No vulnerabilities found.
Reason
security policy file detected
Details
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
Found 19/30 approved changesets -- score normalized to 6
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-01-27
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More