You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
|
|
|
value: true
|
|
|
|
|
});
|
|
|
|
|
exports.docs = exports.hint = exports.info = exports.warning = exports.error = exports.success = exports.progress = void 0;
|
|
|
|
|
const supportsEmoji = process.platform !== 'win32' || process.env.TERM === 'xterm-256color'; // Fallback symbols for Windows from https://en.wikipedia.org/wiki/Code_page_437
|
|
|
|
|
|
|
|
|
|
const progress = supportsEmoji ? '⏳' : '∞';
|
|
|
|
|
exports.progress = progress;
|
|
|
|
|
const success = supportsEmoji ? '✨' : '√';
|
|
|
|
|
exports.success = success;
|
|
|
|
|
const error = supportsEmoji ? '🚨' : '×';
|
|
|
|
|
exports.error = error;
|
|
|
|
|
const warning = supportsEmoji ? '⚠️' : '‼';
|
|
|
|
|
exports.warning = warning;
|
|
|
|
|
const info = supportsEmoji ? 'ℹ️' : 'ℹ';
|
|
|
|
|
exports.info = info;
|
|
|
|
|
const hint = supportsEmoji ? '💡' : 'ℹ';
|
|
|
|
|
exports.hint = hint;
|
|
|
|
|
const docs = supportsEmoji ? '📝' : 'ℹ';
|
|
|
|
|
exports.docs = docs;
|