color-echo

0.0.1 • Public • Published

Color Echo

A simple node.js utility for printing colored output to the terminal

Originally made for practice with node.js

Currently supports CSS keywords and hex color codes

Usage

Usage:
  colorecho.js [OPTIONS] [ARGS]

Options: 
  -c, --color [STRING]   The keyword for the color to be applied to the provided 
                         text  (Default is orange)
  -h, --hex STRING       The hex code of the color to be applied to the provided 
                         text. Do not include #

Examples:

./colorecho.js testing -c red 

prints "testing" in the color red on a new line

./colorecho.js testing -h 32dbc6

prints "testing" in the color with hex code #322dbc (a cyan color). Note that the # symbol must be absent.

Future plans

  • Support rgb, hsl color modes
  • Support using a default color defined in a file
  • Support piping input from stdout

Made by Ralph Nahra

/color-echo/

    Package Sidebar

    Install

    npm i color-echo

    Weekly Downloads

    1

    Version

    0.0.1

    License

    MIT

    Unpacked Size

    1.97 kB

    Total Files

    3

    Last publish

    Collaborators

    • rallphn