All Projects → bvaughn → print-color

bvaughn / print-color

Licence: other
Utility for printing colored text in Node or the Browser

Programming Languages

javascript
184084 projects - #8 most used programming language

print-color

Helper utility for printing colored text in Node or the Browser.

This library was inspired by chalk. I wrote it because I often want to bounce between Node (Jest) and the browser when debugging a problem, and chalk only supports Node.

Usage example

import {bold, red} from 'print-color';

red('This text will be red.');
red.bold('This text will be red and bold');
bold.red('This text will also be red and bold');

Environments

This utility works in the browser:

Screen Shot of print-color demo in Node terminal

It also works in Node:

Screen Shot of print-color demo in Chrome console

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].