0 purchases
ansi
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
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.