yaansi 1.0.1 copy "yaansi: ^1.0.1" to clipboard
yaansi: ^1.0.1 copied to clipboard

Yet another ANSI implementation! A utility package to color your terminal.

example/main.dart

import 'package:yaansi/yaansi.dart';

void main() {
  // extensions
  print('Lorem ipsum'.bold.red);

  // functions
  print(blue(italic('Lorem ipsum')));

  // inline mixing and nesting
  print('${green(' Lorem').bold} ${redBg(' ipsum ').white}'.whiteBg);

  // reusable styling
  const style = YaansiStyle(
    color: YaansiColor.yellow,
    bgColor: YaansiColor.black,
    modes: {YaansiMode.bold, YaansiMode.italic},
  );
  print(style.apply('One'));
  print(style.apply('Two'));
}
4
likes
0
pub points
17%
popularity

Publisher

verified publisher2ohm.de

Yet another ANSI implementation! A utility package to color your terminal.

Repository (GitHub)
View/report issues

License

unknown (license)

More

Packages that depend on yaansi