Last change
on this file since 1ad8e64 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
427 bytes
|
Line | |
---|
1 | 'use strict';
|
---|
2 | const chalk = require('chalk');
|
---|
3 | const isUnicodeSupported = require('is-unicode-supported');
|
---|
4 |
|
---|
5 | const main = {
|
---|
6 | info: chalk.blue('ℹ'),
|
---|
7 | success: chalk.green('✔'),
|
---|
8 | warning: chalk.yellow('⚠'),
|
---|
9 | error: chalk.red('✖')
|
---|
10 | };
|
---|
11 |
|
---|
12 | const fallback = {
|
---|
13 | info: chalk.blue('i'),
|
---|
14 | success: chalk.green('√'),
|
---|
15 | warning: chalk.yellow('‼'),
|
---|
16 | error: chalk.red('×')
|
---|
17 | };
|
---|
18 |
|
---|
19 | module.exports = isUnicodeSupported() ? main : fallback;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.