.gitignore added
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / log-symbols / index.js
1 'use strict';
2 const chalk = require('chalk');
3
4 const isSupported = process.platform !== 'win32' || process.env.CI || process.env.TERM === 'xterm-256color';
5
6 const main = {
7         info: chalk.blue('ℹ'),
8         success: chalk.green('✔'),
9         warning: chalk.yellow('⚠'),
10         error: chalk.red('✖')
11 };
12
13 const fallbacks = {
14         info: chalk.blue('i'),
15         success: chalk.green('√'),
16         warning: chalk.yellow('‼'),
17         error: chalk.red('×')
18 };
19
20 module.exports = isSupported ? main : fallbacks;