Files
old-kitabcitab-frontend/kitabcitab/node_modules/next/dist/lib/web/chalk.js
2022-12-27 12:05:56 +01:00

30 lines
758 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
// In the web runtime, we create an alternative object that just outputs the
// message to the console without any styling. The same APIs are supported
// for compatibility:
// - chalk.red('error')
// - chalk.bold.cyan('message')
// - chalk.hex('#fff').underline('hello')
const chalk = new Proxy((s)=>s, {
get (_, prop) {
if ([
"hex",
"rgb",
"ansi256",
"bgHex",
"bgRgb",
"bgAnsi256"
].includes(prop)) {
return ()=>chalk;
}
return chalk;
}
});
var _default = chalk;
exports.default = _default;
//# sourceMappingURL=chalk.js.map