UNPKG

nativescript

Version:

Command-line interface for building NativeScript projects

45 lines 2.65 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.stripColors = exports.color = void 0; const node_util_1 = require("node:util"); // Create a chalk-like API using the Node.js util.styleText function exports.color = { reset: (text) => (0, node_util_1.styleText)("reset", text), bold: (text) => (0, node_util_1.styleText)("bold", text), dim: (text) => (0, node_util_1.styleText)("dim", text), italic: (text) => (0, node_util_1.styleText)("italic", text), underline: (text) => (0, node_util_1.styleText)("underline", text), inverse: (text) => (0, node_util_1.styleText)("inverse", text), hidden: (text) => (0, node_util_1.styleText)("hidden", text), strikethrough: (text) => (0, node_util_1.styleText)("strikethrough", text), // Text colors black: (text) => (0, node_util_1.styleText)("black", text), red: (text) => (0, node_util_1.styleText)("red", text), blue: (text) => (0, node_util_1.styleText)("blue", text), magenta: (text) => (0, node_util_1.styleText)("magenta", text), cyan: (text) => (0, node_util_1.styleText)("cyan", text), white: (text) => (0, node_util_1.styleText)("white", text), gray: (text) => (0, node_util_1.styleText)("gray", text), yellow: (text) => (0, node_util_1.styleText)("yellow", text), green: (text) => (0, node_util_1.styleText)("green", text), grey: (text) => (0, node_util_1.styleText)("grey", text), // Background colors bgBlack: (text) => (0, node_util_1.styleText)("bgBlack", text), bgBlackBright: (text) => (0, node_util_1.styleText)("bgBlackBright", text), bgRed: (text) => (0, node_util_1.styleText)("bgRed", text), bgGreen: (text) => (0, node_util_1.styleText)("bgGreen", text), bgYellow: (text) => (0, node_util_1.styleText)("bgYellow", text), bgBlue: (text) => (0, node_util_1.styleText)("bgBlue", text), bgMagenta: (text) => (0, node_util_1.styleText)("bgMagenta", text), bgCyan: (text) => (0, node_util_1.styleText)("bgCyan", text), bgWhite: (text) => (0, node_util_1.styleText)("bgWhite", text), cyanBright: (text) => (0, node_util_1.styleText)("cyanBright", text), whiteBright: (text) => (0, node_util_1.styleText)("whiteBright", text), greenBright: (text) => (0, node_util_1.styleText)("greenBright", text), yellowBright: (text) => (0, node_util_1.styleText)("yellowBright", text), redBright: (text) => (0, node_util_1.styleText)("redBright", text), styleText: node_util_1.styleText, }; const stripColors = (text) => (0, node_util_1.stripVTControlCharacters)(text); exports.stripColors = stripColors; //# sourceMappingURL=color.js.map