christian 4571a14169 android fix | il y a 4 ans | |
---|---|---|
.. | ||
index.js | il y a 4 ans | |
license | il y a 4 ans | |
package.json | il y a 4 ans | |
readme.md | il y a 4 ans |
Unicode symbols with Windows CMD fallbacks
Windows CMD only supports a limited character set.
$ npm install --save figures
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: √
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.
Type: string
String where the unicode symbols will be replaced with fallback symbols depending on the OS.
Name | Real OSes | 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 | ♥ | ♥ |
arrowUp | ↑ | ↑ |
arrowDown | ↓ | ↓ |
arrowLeft | ← | ← |
arrowRight | → | → |
radioOn | ◉ | (*) |
radioOff | ◯ | ( ) |
checkboxOn | ☒ | [×] |
checkboxOff | ☐ | [ ] |
checkboxCircleOn | ⓧ | (×) |
checkboxCircleOff | Ⓘ | ( ) |
questionMarkPrefix | ?⃝ | ? |
oneHalf | ½ | ½ |
oneThird | ⅓ | 1/3 |
oneQuarter | ¼ | ¼ |
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 | ¾ | ¾ |
threeFifths | ⅗ | 3/5 |
threeEighths | ⅜ | 3/8 |
fourFifths | ⅘ | 4/5 |
fiveSixths | ⅚ | 5/6 |
fiveEighths | ⅝ | 5/8 |
sevenEighths | ⅞ | 7/8 |
MIT © Sindre Sorhus