chalk
1.2.1, released 4 years ago by an unverified publisher
Style your terminal strings with an expressive and chained API.
WASM-ready
What it does
Chalk provides a way to style and color terminal output in Dart and Flutter applications. It features an expressive API that allows chaining styles, nesting formats, and specifying text colors and font faces.
AI-written summary of version 1.2.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want to color and format terminal text in CLI tools or server-side Dart apps.
- You need to nest multiple styles like bold and colors together for console output.
Skip it when
- You are building a graphical user interface (GUI) or Flutter widget tree.
- You need complex terminal UI components beyond basic string styling.
Strengths
- Expressive and chainable API
- Ability to nest styles easily
- Highly performant
Weaknesses
- Certain formatting options like underline and strike-through are not widely supported
- Limited to terminal string styling
Setup
- Kind
- Pure Dart
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
import 'package:chalk/chalk.dart';
void main() {
print(chalk.blue('blue text', ftFace: ChalkFtFace.italic));
print(chalk.cyan('cyan').bold());
}Alternatives
Packages that do the same job and could replace chalk.