ANSI escape codes for coloring and styling terminal output | Códigos de escape ANSI para colorear y estilizar la salida de la terminal
npm install @imjxsx/colorspnpm add @imjxsx/colorsyarn add @imjxsx/colors// index.js
import colors from "@imjxsx/colors"; // or import { colors } from "@imjxsx/colors";
console.log(colors.stylize(colors.fg.green, "User created successfully"));
console.log(colors.stylize(colors.fg.red, "An unexpected error occurred"));
console.log(colors.stylize(colors.styles.underscore, colors.fg.yellow, "Warning!"));
console.log(colors.stylize(colors.styles.bright, colors.fg.green, "Success!"));
console.log(colors.stylize(colors.fg256(200), "256-color text"));
console.log(colors.stylize(colors.bgRGB(255,0,255), "RGB background"));Developed with ❤ by imjxsx