env-ai
Version:
AI Assistant for Your Local Environment
51 lines (47 loc) • 1.57 kB
JavaScript
import { styleText } from 'node:util';
const dim = (v) => styleText("dim", v);
const bold = (v) => styleText("bold", v);
const white = (v) => styleText("white", v);
const green = (v) => styleText("green", v);
const italic = (v) => styleText("italic", v);
const yellow = (v) => styleText("yellow", v);
const red = (v) => styleText("red", v);
const magenta = (v) => styleText("magenta", v);
const blue = (v) => styleText("cyan", v);
const underline = (v) => styleText("underline", v);
const grayBright = (v) => styleText("gray", v);
const black = (v) => styleText("black", v);
const gray = (v) => styleText("gray", dim(v));
const blackBold = (v) => black(bold(v));
const introColor = (v) => styleText("bgCyan", blackBold(` ${v} `));
const error = (v) => styleText("bgRed", ` ${v} `);
const warn = (v) => styleText("bgYellow", blackBold(` ${v} `));
const success = (v) => styleText("bgGreen", blackBold(` ${v} `));
const debug = (v) => styleText("bgWhite", black(` ${v} `));
const section = (v) => styleText("bgBlue", white(` ${v} `));
const link = (v) => underline(italic(v));
const c = {
__proto__: null,
black: black,
blackBold: blackBold,
blue: blue,
bold: bold,
debug: debug,
dim: dim,
error: error,
gray: gray,
grayBright: grayBright,
green: green,
introColor: introColor,
italic: italic,
link: link,
magenta: magenta,
red: red,
section: section,
success: success,
underline: underline,
warn: warn,
white: white,
yellow: yellow
};
export { bold as a, blue as b, c, dim as d, green as e, grayBright as g, italic as i, magenta as m, red as r };