UNPKG

585 BTypeScriptView Raw
1/**
2Colored symbols for various log levels.
3
4Includes fallbacks for Windows CMD which only supports a [limited character set](https://en.wikipedia.org/wiki/Code_page_437).
5
6@example
7```
8import logSymbols from 'log-symbols';
9
10console.log(logSymbols.success, 'Finished successfully!');
11// Terminals with Unicode support: ✔ Finished successfully!
12// Terminals without Unicode support: √ Finished successfully!
13```
14*/
15declare const logSymbols: {
16 readonly info: string;
17 readonly success: string;
18 readonly warning: string;
19 readonly error: string;
20};
21
22export default logSymbols;