coco 1.0.3 copy "coco: ^1.0.3" to clipboard
coco: ^1.0.3 copied to clipboard

coco makes console colourful

example/coco_example.dart

import 'package:coco/coco.dart';

void main() {
  /// coco makes console colourful using simple functions
  /// use [write] to print any string in beautiful colors
  'coco '.write(inPurple);
  'makes '.write(inGray);
  'console '.write(inBold & inGray);
  'colourful '.write(inColourfulLetters & inItalics);
  'using '.write(inGray);
  'simple '.write(inGray);
  'functions.'.writeLine(inGray);

  /// use [print] or [writeLine] to add a line break at the end of the string
  'use '.write(inSubtleColors);
  'write(✨) '.write(inRed);
  'or '.write(inSubtleColors);
  'print(✨) '.write(inRed);
  'to add a '.write(inSubtleColors);
  'line break ✂️'.write(inItalics & inShadesOfBlue & breakLine);
  'at the end of the string.'.print(inSubtleColors);

  /// combine multiple colors and styles using [&] operator
  'combine multiple '.write(inSubtleColors);
  'colors '.write(inColourfulLetters);
  'and '.write(inSubtleColors);
  'styles '.write(inFunkyLetters);
  'using '.write(inSubtleColors);
  '[&] '.write(inRed);
  'operator.'.writeLine(inSubtleColors);
  'Now you can really '.write(inSubtleColors);

  /// go crazy with your console!❤️
  'go crazy with your console! ❤️'.print(inColourfulLetters);
}
1
likes
140
points
98
downloads

Publisher

verified publishertwi.ng

Weekly Downloads

coco makes console colourful

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on coco