Skip to content

jxsxdev/colors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎨 @imjxsx/colors (v1.0.4)

ANSI escape codes for coloring and styling terminal output | Códigos de escape ANSI para colorear y estilizar la salida de la terminal

📥 Installation | Instalación


- With NPM | Con NPM

npm install @imjxsx/colors

- With PNPM | Con PNPM

pnpm add @imjxsx/colors

- With YARN | Con YARN

yarn add @imjxsx/colors

🚀 Example of Use | Ejemplo de Uso

// 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

About

ANSI escape codes for coloring and styling terminal output

Resources

Stars

Watchers

Forks

Contributors