ansi 0.4.2 copy "ansi: ^0.4.2" to clipboard
ansi: ^0.4.2 copied to clipboard

Terminal string styling done right with a number of builtin style functions.

ansi #

Terminal string styling done right


Install #

dart pub add ansi
copied to clipboard

Usage #

import 'package:ansi/ansi.dart';

void main() {
  /// Use style method directly
  print(blue('Hello world!'));

  /// Combine styled and normal strings
  print(bgWhite('${blue('Hello')} World${red('!')}'));

  /// Combine styled and normal strings
  print(bgWhite('${blue('Hello')} World${red('!')}'));

  /// Use extension method on String
  print('extension method on String'.cyan());
}

copied to clipboard
2
likes
160
points
21.9k
downloads

Publisher

unverified uploader

Weekly Downloads

2024.08.24 - 2025.03.08

Terminal string styling done right with a number of builtin style functions.

Homepage
Repository (GitHub)

Documentation

API reference

License

Apache-2.0 (license)

More

Packages that depend on ansi