0 purchases
ansi wrap
ansi_wrap #
Wordwrap a string with ANSI escape codes
Install #
$ dart pub add ansi_wrap
copied to clipboard
Usage #
import 'package:ansi/ansi.dart';
import 'package:ansi_wrap/ansi_wrap.dart';
void main() {
final input = 'The quick brown ${red('fox jumped over ')}the lazy ${green('dog and then ran away with the unicorn.')}';
print(wrapAnsi(input, 20));
}
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.