aboutsummaryrefslogtreecommitdiff
path: root/sandbox/testAppNevena/Front/node_modules/log-symbols/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/testAppNevena/Front/node_modules/log-symbols/index.js')
-rw-r--r--sandbox/testAppNevena/Front/node_modules/log-symbols/index.js19
1 files changed, 19 insertions, 0 deletions
diff --git a/sandbox/testAppNevena/Front/node_modules/log-symbols/index.js b/sandbox/testAppNevena/Front/node_modules/log-symbols/index.js
new file mode 100644
index 00000000..12347e09
--- /dev/null
+++ b/sandbox/testAppNevena/Front/node_modules/log-symbols/index.js
@@ -0,0 +1,19 @@
+'use strict';
+const chalk = require('chalk');
+const isUnicodeSupported = require('is-unicode-supported');
+
+const main = {
+ info: chalk.blue('ℹ'),
+ success: chalk.green('✔'),
+ warning: chalk.yellow('⚠'),
+ error: chalk.red('✖')
+};
+
+const fallback = {
+ info: chalk.blue('i'),
+ success: chalk.green('√'),
+ warning: chalk.yellow('‼'),
+ error: chalk.red('×')
+};
+
+module.exports = isUnicodeSupported() ? main : fallback;