log-symbols
Chalk-free colored symbols for various log levels
Includes fallbacks for Windows CMD which only supports a limited character set.
HEADS UP!
This is a fork of sindresorhus' log-symbols. This should act as a drop-in replacement for this module. The only change is that the
chalk
dependency is replaced withcolorette
.
Install
$ npm install @nickkaramoff/log-symbols
Usage
import logSymbols from '@nickkaramoff/log-symbols';
console.log(logSymbols.success, 'Finished successfully!');
// Terminals with Unicode support: ✔ Finished successfully!
// Terminals without Unicode support: √ Finished successfully!
API
logSymbols
info
success
warning
error
Related
- figures - Unicode symbols with Windows CMD fallbacks
- py-log-symbols - Python port
- log-symbols - Ruby port
- guumaster/logsymbols - Golang port
Licence
MIT © 2021 Nikita Karamov
MIT © 2021 Sindre Sorhus