Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Color Me

A simple utility to colorize foreground and/or background text with ANSI escape codes

Usage

  1. Add the package to your project:
deno add @vef/color-me
  1. Import the package and use it:
import { colorMe } from "@vef/color-me";

const message = colorMe.green("Hello, world!");
console.log(message);

Or with options:

import { colorMe } from "@vef/color-me";

const message = colorMe.brightBlue("Hello, world!",{
  bgColor: 'bgRed',
  bold:true;
  italic:true;
  underline:true;
  strikethrough:true;
});

console.log(message);

or with the inverse option:

import { colorMe } from "@vef/color-me";
// invert the background and foreground colors
const message = colorMe("Hello, world!",{
  inverse:true;
});

About

A simple utility to colorize and style terminal text with ANSI escape codes in your TypeScript project

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages