Pretty console logging
MIT License
You're trying to log information, but have a hard time tracking down what the output means, where it came from, or can't find what you're looking for quickly.
Use colors to easily parse through your console.
import log, { green } from "console.pretty";
const handleOnClick = () => {
log.blue("Click!");
};
const handleMouseover = () => {
green("Mouseover!");
};
This module is distributed via npm which is bundled with node and
should be installed as one of your project's dependencies
:
$ npm install console.pretty
or
$ yarn add console.pretty
By default, the following colors are available:
However, you can also build your own logger using the provided createLogger
.
import { createLogger } from "console.pretty";
const pink = createLogger("#FFC0CB", "#000000");
pink("My pink logger");
MIT