1.0.4 • Published 2 years ago

print-color v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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:

It also works in Node:

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago