js-console-color

javascript console with colors (sensible defaults,overridable)

Usage no npm install needed!

<script type="module">
  import jsConsoleColor from 'https://cdn.skypack.dev/js-console-color';
</script>

README

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"]
});