From 01160246e4a0c0052181c72a53737e356ea7d02d Mon Sep 17 00:00:00 2001 From: Minteck Date: Sat, 12 Feb 2022 10:33:06 +0100 Subject: First commit --- node_modules/log-symbols/index.js | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 node_modules/log-symbols/index.js (limited to 'node_modules/log-symbols/index.js') diff --git a/node_modules/log-symbols/index.js b/node_modules/log-symbols/index.js new file mode 100644 index 0000000..2c82c0c --- /dev/null +++ b/node_modules/log-symbols/index.js @@ -0,0 +1,20 @@ +import chalk from 'chalk'; +import isUnicodeSupported from '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('×'), +}; + +const logSymbols = isUnicodeSupported() ? main : fallback; + +export default logSymbols; -- cgit