js-console-color

0.2.0 • Public • Published

js-console-color

javascript console with colors (sensible defaults,overridable)

Usage

import {debug, log, info, warn, error} from "js-console-color";
debug("debug", "message");
log("log", "message");
info("info", "message");
warn("warn", "message");
error("error", "message");

Configuration

js-console-color allows configuration of the console methods using the chalk library.

import jsConsoleColorEnv from "js-console-color";
jsConsoleColorEnv({
  info: ["purple", "bold"],
  warn: ["red", "italic"]
});

Package Sidebar

Install

npm i js-console-color

Weekly Downloads

1

Version

0.2.0

License

Apache

Last publish

Collaborators

  • btakita