Skip to content

abschill/terminal-color

Repository files navigation

Installation

yarn install terminal-color

or

npm install terminal-color

const { color } = require('terminal-color');
color.fg.red('Hello World');

public members

bg effects background of text

fg effects foreground of text

colors

applies to both background and foreground

black

yellow

white

cyan

blue

purple

red

green

cyan

examples full type defs