Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

chalk-konsole

twilkinson342138MIT1.0.9TypeScript support: included

A small library which exposes some helpful utilities for using the Chalk library in the console

chalk, konsole, chalk-konsole, konsole-chalk, console, console-utils, console-color

readme

Chalk Konsole

A small library which exposes some helpful utilities for using the Chalk library in the console. This is an early version and currently contains only a few methods, but will be expanded in the future.

Installation

npm install --save chalk-konsole

Usage

import konsole from "chalk-konsole";

konsole.err("Something went wrong", "This is why");

output

Methods

Method Description
err Prints an error message with red indicator and optional reason.
warn Prints a warning message with yellow indicator and optional reason.
info Prints an info message with blue indicator.
success Prints a success message with green indicator.