Skip to content
pubscout

cli_badges

0.0.2, released 5 years ago by an unverified publisher

Print customizable colored badges to the terminal for CLI apps.

WASM-ready
$ flutter pub add cli_badges
Source repository

What it does

Generates ANSI‑styled badge strings with label and message. Provides built‑in themes and methods to customize colors and layout.

AI-written summary of version 0.0.2, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need quick visual status indicators in a Dart/Flutter CLI tool
  • You want zero‑dependency, cross‑platform terminal output

Skip it when

  • Building a GUI or web UI
  • Needing complex graphics or image badges

Strengths

  • No external dependencies
  • Simple, chainable API
  • Built‑in color themes
  • Works on all Dart platforms

Weaknesses

  • Limited to terminal output
  • Customization confined to provided themes
  • No async or stream features

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
0
import 'package:cli_badges/cli_badges.dart';

var badge = Badge(label:'success',message:'42').green();
print(badge);

Alternatives

Packages that do the same job and could replace cli_badges.

  • console

    Provides general terminal styling and color utilities, can be used to build similar badges without a dedicated package