unicons
Cross-platform unicode icon toolkit
Provides fast access to the most commonly used unicode icons.
var unicons = require("unicons");
console.log(unicons.check);
console.log(unicons.cross);
Installation
npm i unicons --save
CLI mode
unicons has especially been designed for use in CLIs. If you want to support different OS, just call .cli(iconName)
and you'll get the most suitable character for the given environment:
unicons.cli("circle");
Icon table
Property | Default | Windows Console Fallback |
---|
check | ✓ | √ |
cross | ✖ | × |
arrowLeft | ← | ← |
arrowUp | ↑ | ↑ |
arrowRight | → | → |
arrowDown | ↓ | ↓ |
circle | ● | o |
The icon table is still very small :(
If you can't find your icon in the icon table, don't hesitate to create a pull request.
License
Unlicense