source: trip-planner-front/node_modules/log-symbols/index.js@ 188ee53

Last change on this file since 188ee53 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';
2const chalk = require('chalk');
3const isUnicodeSupported = require('is-unicode-supported');
4
5const main = {
6 info: chalk.blue('ℹ'),
7 success: chalk.green('✔'),
8 warning: chalk.yellow('⚠'),
9 error: chalk.red('✖')
10};
11
12const fallback = {
13 info: chalk.blue('i'),
14 success: chalk.green('√'),
15 warning: chalk.yellow('‼'),
16 error: chalk.red('×')
17};
18
19module.exports = isUnicodeSupported() ? main : fallback;
Note: See TracBrowser for help on using the repository browser.