Description
unicons is a cross-platform toolkit for Unicode icons. It gives fast access to the most common symbols, such as arrows, a check mark, a cross, a gear and the option key, by name rather than by a copied character. Its CLI mode is made for command-line tools. Calling cli with an icon name returns the most suitable character for the current environment. On a Windows console the icon table gives a fallback, for example o for circle and the multiplication sign for cross. The README explains why names beat copied characters: copying is error prone, can include invisible characters, and a character that shows on your computer may not show on someone else's. Depending on the character range, a returned string may be longer than one character. The icon table lists each property with its default character and its Windows fallback. Contributors are asked to run npm test on both Unix and Windows cmd.exe before opening a pull request. The package is released under the Unlicense, and the source is public on GitHub.…
Highlights
- Common Unicode icons by name
- CLI mode with Windows console fallbacks
- Icon table with default and fallback characters
- Unlicense
- Tests run on Unix and Windows
Ratings & Reviews
No ratings yet
Be the first to rate unicons.
People also visit
unicons FAQ
What is unicons?
A cross-platform toolkit that gives you common Unicode icons by name, with a special mode for command-line tools.
How does CLI mode work?
Call .cli with an icon name, and you get the most suitable character for the environment, using a fallback on a Windows console.
Why not copy and paste the characters?
The README says copying is error prone, may include invisible characters, and may not display the same on every computer, so it recommends using names.
Can a returned icon be more than one character?
Yes. Depending on the character range, and on some older consoles, the returned string can be longer than one character.
What license is it under?
The Unlicense, as stated in the README.
What are the best unicons alternatives?
Popular alternatives to unicons include fontawesome, @flaticon/flaticon-uicons and @unocss/preset-icons. See all unicons alternatives















