Skip to content

mtndbs/color_simp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

color_simp

A simple Dart package that adds colorful console logging using ANSI escape codes.

Features

  • 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.

Getting Started

To use color_simp, add it as a dependency in your pubspec.yaml:

dependencies:
  color_simp: latest_version

Then, run:

dart pub get

Usage

import '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();
}

Output Example:

Console Output Example

Running Tests

To ensure everything works as expected, run:

dart test

Contributing

Contributions are welcome! If you find a bug or have an idea for an improvement:

  1. Fork the repository.
  2. Create a feature branch.
  3. Submit a pull request.

Issues

If you encounter any issues, feel free to open an issue on GitHub.

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages