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.
npm install yeoman-characterVerified import paths — ran on the pinned version, not inferred.
Demonstrates how to import and log the Yeoman character string using ES Modules, including setup instructions for ESM, and mentions the global CLI usage.
Migrate your codebase to use ES Modules (e.g., `"type": "module"` in `package.json` or `.mjs` file extension). If you must use it in a CJS environment, consider dynamic `import()` (e.g., `import('yeoman-character').then(mod => console.log(mod.default))`).Upgrade your Node.js environment to version 18 or newer to ensure compatibility and prevent runtime errors.
To display the character with colors, you will need to apply a terminal coloring library (e.g., `chalk`, `picocolors`) to the string yourself, such as `console.log(chalk.blue(yeomanCharacter))`.
Change `require('yeoman-character')` to `import yeomanCharacter from 'yeoman-character';` and ensure your project uses ES Modules (e.g., by setting `"type": "module"` in `package.json` or using `.mjs` file extensions). For CJS compatibility, use `import('yeoman-character').then(mod => console.log(mod.default))`.Ensure the file using `import` is treated as an ES Module by either renaming it to `.mjs` or by adding `"type": "module"` to your project's `package.json`.
No dependency data recorded yet.