Last change
on this file since eed0bf8 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
588 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | /**
|
---|
| 2 | Colored symbols for various log levels.
|
---|
| 3 |
|
---|
| 4 | Includes fallbacks for Windows CMD which only supports a [limited character set](https://en.wikipedia.org/wiki/Code_page_437).
|
---|
| 5 |
|
---|
| 6 | @example
|
---|
| 7 | ```
|
---|
| 8 | import logSymbols = require('log-symbols');
|
---|
| 9 |
|
---|
| 10 | console.log(logSymbols.success, 'Finished successfully!');
|
---|
| 11 | // Terminals with Unicode support: ✔ Finished successfully!
|
---|
| 12 | // Terminals without Unicode support: √ Finished successfully!
|
---|
| 13 | ```
|
---|
| 14 | */
|
---|
| 15 | declare const logSymbols: {
|
---|
| 16 | readonly info: string;
|
---|
| 17 |
|
---|
| 18 | readonly success: string;
|
---|
| 19 |
|
---|
| 20 | readonly warning: string;
|
---|
| 21 |
|
---|
| 22 | readonly error: string;
|
---|
| 23 | };
|
---|
| 24 |
|
---|
| 25 | export = logSymbols;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.