0.2.7 • Published 3 months ago

@neodx/colors v0.2.7

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

@neodx/colors

Lightweight formatting and colorizing for the terminal.

demo

Installation

npm install @neodx/colors
# yarn
yarn add @neodx/colors
# pnpm
pnpm add @neodx/colors

Usage

import { colors } from '@neodx/colors';

console.log(colors.red('Hello world!'));

API

colors

The colors object contains all the available colors.

import { colors } from '@neodx/colors';

// colors

colors.red; // red color
colors.green; // green color
colors.yellow; // yellow color
colors.blue; // blue color
colors.magenta; // magenta color
colors.cyan; // cyan color
colors.white; // white color
colors.gray; // gray color

// bright colors

colors.redBright; // bright red color
colors.greenBright; // bright green color
colors.yellowBright; // bright yellow color
colors.blueBright; // bright blue color
colors.magentaBright; // bright magenta color
colors.cyanBright; // bright cyan color
colors.whiteBright; // bright white color

// background colors

colors.bgRed; // red background color
colors.bgGreen; // green background color
colors.bgYellow; // yellow background color
colors.bgBlue; // blue background color
colors.bgMagenta; // magenta background color
colors.bgCyan; // cyan background color
colors.bgWhite; // white background color

// modifiers

colors.bold; // bold text
colors.dim; // dim text
colors.italic; // italic text
colors.underline; // underline text
colors.inverse; // inverse text
colors.hidden; // hidden text
colors.strikethrough; // strikethrough text

colors.reset; // reset all styles
0.2.7

3 months ago

0.2.6

7 months ago

0.2.5

10 months ago

0.2.4

12 months ago

0.2.3

12 months ago

0.2.2

12 months ago

0.2.1

1 year ago

0.2.0

1 year ago