123456789101112131415161718192021222324252627282930 |
- "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
|