A simple Dart package that adds colorful console logging using ANSI escape codes.
- Easily apply colors to console output.
- Supports red, green, yellow, blue, magenta, cyan.
- Provides a
log()method to print colored text directly. - Includes prevent prints on production mode.
To use color_simp, add it as a dependency in your pubspec.yaml:
dependencies:
color_simp: latest_versionThen, run:
dart pub getimport 'package:color_simp/color_simp.dart';
void main() {
"Its very easy on green".green.log();
"Its very easy on red also".red.log();
"Same on yellow".yellow.log();
userProvider.user!.firstName?.yellow.log();
}To ensure everything works as expected, run:
dart testContributions are welcome! If you find a bug or have an idea for an improvement:
- Fork the repository.
- Create a feature branch.
- Submit a pull request.
If you encounter any issues, feel free to open an issue on GitHub.
This project is licensed under the MIT License. See the LICENSE file for details.
