Debian Codegraph @

log-symbols/symbols.js

raw
1 import {
2 blue,
3 green,
4 yellow,
5 red,
6 } from 'yoctocolors';
7 import isUnicodeSupported from 'is-unicode-supported';
8
9 const _isUnicodeSupported = isUnicodeSupported();
10
11 export const info = blue(_isUnicodeSupported ? 'ℹ' : 'i');
12 export const success = green(_isUnicodeSupported ? '✔' : '√');
13 export const warning = yellow(_isUnicodeSupported ? '⚠' : '‼');
14 export const error = red(_isUnicodeSupported ? '✖' : '×');