1.0.3 • Published 1 year ago

quick-colors v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

quick-colors

A lightweight coloring package with takes only 10.0KB of space.

Installation

Install via NPM:

npm install quick-colors

Usage

JavaScript

var quickcolors = require("quick-colors");

quickcolors.red("Hello!"); // print and return a red "Hello!" message

TypeScript

import * as quickcolors from 'quick-colors';

quickcolors.red("Hello!"); // print and return a red "Hello!" message

All functions

Text Colors

quickcolors.black("Hello!"); // print and return a black "Hello!" message
quickcolors.red("Hello!"); // print and return a red "Hello!" message
quickcolors.green("Hello!"); // print and return a green "Hello!" message
quickcolors.yellow("Hello!"); // print and return a yellow "Hello!" message
quickcolors.blue("Hello!"); // print and return a blue "Hello!" message
quickcolors.magenta("Hello!"); // print and return a magenta "Hello!" message
quickcolors.cyan("Hello!"); // print and return a cyan "Hello!" message
quickcolors.white("Hello!"); // print and return a white "Hello!" message

Background Colors

quickcolors.bgBlack("Hello!"); // print and return a black background "Hello!" message
quickcolors.bgRed("Hello!"); // print and return a red background "Hello!" message
quickcolors.bgGreen("Hello!"); // print and return a green background "Hello!" message
quickcolors.bgYellow("Hello!"); // print and return a yellow background "Hello!" message
quickcolors.bgBlue("Hello!"); // print and return a blue background "Hello!" message
quickcolors.bgMagenta("Hello!"); // print and return a magenta background "Hello!" message
quickcolors.bgCyan("Hello!"); // print and return a cyan background "Hello!" message
quickcolors.bgWhite("Hello!"); // print and return a white background "Hello!" message

Text Styles

quickcolors.bold("Hello!"); // print and return a bold "Hello!" message
quickcolors.underline("Hello!"); // print and return a underline "Hello!" message

License

This project is licensed under the terms of the MIT license.

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago