Acho CLI Logger Skin

2.0.1 · active · verified Wed Apr 22

acho-skin-cli is a dedicated plugin for the `acho` logging library, designed to provide a set of pre-defined log types specifically tailored for command-line interface (CLI) applications. Its primary function is to enhance the visual presentation of log messages within a terminal, offering consistent and clear output for various states like success, error, info, and warnings. The package is currently at version `2.0.1`, indicating a stable release. While no explicit release cadence is documented, its integration with `acho@4.x` as a peer dependency suggests a mature and maintained component within the `acho` ecosystem. Key differentiators include its singular focus on CLI-specific log styling and its lightweight integration as a types object directly into the `acho` logger, rather than being a standalone logger itself. It is intended to be used in conjunction with `acho` to achieve styled CLI output.

Common errors

Warnings

Install

Imports

Quickstart

Demonstrates how to initialize the `acho` logger with `acho-skin-cli` and use its various CLI-specific log types.

const acho = require('acho');

// Initialize the acho logger with the CLI skin types
const log = acho({
  types: require('acho-skin-cli')
});

// Use the CLI-specific log types
log.info('Starting CLI process...');
log.success('Operation completed successfully.');
log.warn('A potential issue was detected.');
log.error('An unrecoverable error occurred!');
log.debug('This is a debug message, visible in debug mode.');

// Example of custom log type usage, if supported by acho
// log.customType('Custom message with custom style.');

view raw JSON →