We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
chalk
ansi
1 parent 8161e7d commit c63b43eCopy full SHA for c63b43e
lib/src/logger.dart
@@ -1,13 +1,14 @@
1
import 'dart:io' as io;
2
-import 'package:chalk/chalk.dart';
+
3
+import 'package:ansi/ansi.dart';
4
5
class Logger {
6
final String name;
7
final bool isDebug;
8
Logger(this.name) : isDebug = io.Platform.environment['DEBUG'] == 'true';
9
10
void stderr(String message) {
- io.stderr.writeln(chalk.red('$name $message'));
11
+ io.stderr.writeln(ansi.red('$name $message'));
12
}
13
14
void stdout(String message) {
pubspec.yaml
@@ -9,8 +9,8 @@ environment:
sdk: '>=2.12.0 <3.0.0'
dependencies:
+ ansi: ^0.2.2
args: ^2.3.1
- chalk: ^1.2.1
glob: ^2.0.1
15
path: ^1.8.0
16
yaml: ^3.1.1
0 commit comments