@mhafemann/figures
This package provides Unicode symbols with Windows-compatible fallbacks.
This package is a customized version of the figures package written by Sindre Sorhus.
Installation
pnpm i @mhafemann/figures
Usage
ES6
import figures from '@mhafemann/figures';
console.log(figures.tick); // >> ✔ Or on Winodws >> √
CommonJS
const figures = require('@mhafemann/figures');
Figures
Name | Symbol | Windows Fallback |
---|---|---|
arrowDown | ↓ | ↓ |
arrowLeft | ← | ← |
arrowRight | → | → |
arrowUp | ↑ | ↑ |
bullet | ● | ● |
circle | ◯ | ( ) |
circleFilled | ◉ | (*) |
cross | ✘ | × |
heart | ||
home | ⌂ | ⌂ |
info | i | |
line | - | - |
lineVertical | │ | │ |
pointer | ❯ | > |
squareSmall | ||
squareSmallFilled | ||
tick | √ | |
warning |