Yeoman Character for CLI

2.0.0 · active · verified Wed Apr 22

The `yeoman-character` package provides a customizable, multi-line ASCII art representation of the Yeoman mascot for command-line interfaces. The current stable version is 2.0.0, which introduced significant breaking changes by moving to pure ES Modules and requiring Node.js 18. As a focused utility package for a specific visual element, its release cadence is typically slow, primarily addressing compatibility updates rather than frequent feature additions. Its key differentiator is its singular purpose: delivering the iconic Yeoman character simply and effectively to any Node.js CLI, making it a staple for branding tools within the Yeoman ecosystem or for adding a distinctive visual flair to console output.

Common errors

Warnings

Install

Imports

Quickstart

Demonstrates how to import and log the Yeoman character string using ES Modules, including setup instructions for ESM, and mentions the global CLI usage.

// To run this example:
// 1. Ensure your Node.js version is 18 or higher.
// 2. Save this code as `index.mjs` (note the `.mjs` extension for ESM).
// 3. In your project directory, run: `npm install yeoman-character`
// 4. Then execute from your terminal: `node index.mjs`

import yeomanCharacter from 'yeoman-character';

console.log("-----------------------------------------");
console.log("  Displaying the Yeoman Character:");
console.log("-----------------------------------------");

// The `yeomanCharacter` export is a simple multiline string containing
// the ASCII art representation of the Yeoman mascot. While the character
// itself does not contain ANSI color codes by default in this package
// version, it is commonly used with terminal coloring libraries
// like 'chalk' or 'picocolors' for visual effect in CLIs.
console.log(yeomanCharacter);

console.log("\nThis character can also be displayed directly via its CLI:");
console.log("To install globally: `npm install --global yeoman-character`");
console.log("Then run from any terminal: `yeoman-character`");
console.log("-----------------------------------------");

view raw JSON →