yaansi

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

yaansi

yaansi #
Yet another ANSI implementation! A utility package to color your terminal.
Notable source: https://gist.github.com/fnky/458719343aabd01cfb17a3a4f7296797
Usage #
Install:
dart pub add yaansi
copied to clipboard
Use:
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'));
}
copied to clipboard

Notes #

Supports only basic colors and modes.

License #
See the LICENSE file.
Version history #
See the CHANGELOG.md file.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files:

Customer Reviews

There are no reviews.